mbox series

[v3,0/4] iio: core: A few code cleanups and documentation fixes

Message ID 20230724110204.46285-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series iio: core: A few code cleanups and documentation fixes | expand

Message

Andy Shevchenko July 24, 2023, 11:02 a.m. UTC
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(-)