Skip to content

iio: core: A few code cleanups and documentation fixes

Andy Shevchenko linux-iio lkml 3 versions – Applied

Status from this message: Applied to the togreg branch of iio.git.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 8 repliesApplied
  2. v28 patches 15 repliesApplied
  3. v18 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- 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)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4iio: core: Use sysfs_match_string() helperdrivers/iio/industrialio-core.c+32 -391 reply
2/4iio: core: Add opaque_struct_size() helper and use itdrivers/iio/industrialio-core.c+20 -85 replies
3/4iio: core: Switch to krealloc_array()drivers/iio/industrialio-core.c+1 -11 reply
4/4iio: core: Fix issues and style of the commentsdrivers/iio/industrialio-core.c+37 -201 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchNuno SaRandy Dunlap
1/4R-b
2/4R-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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(-)
Signature · 1 line
2.40.0.1.gaa8946217a0b