Just set of almost unrelated to each other cleanups against IIO core implementation. The positive LoCs diffstat due to first patch that adds a lot of documentation for the newly added macro and existing kernel doc. v3: - dropped applied patches - use switch-case for the supported clocks (Jonathan) - redone opaque_struct_size() to be simpler (Uwe) - dropped wrong hunk for krealloc_array() conversion (Jonathan) - dropped initcall move (Jonathan) v2: - sprintf() --> sysfs_emit() (Nuno) - added tag (Nuno) Andy Shevchenko (4): iio: core: Use sysfs_match_string() helper iio: core: Add opaque_struct_size() helper and use it iio: core: Switch to krealloc_array() iio: core: Fix issues and style of the comments drivers/iio/industrialio-core.c | 158 ++++++++++++++++++-------------- 1 file changed, 90 insertions(+), 68 deletions(-) -- 2.40.0.1.gaa8946217a0b