Skip to content

General clean up and bug fixes

Ethan Tidmore linux-iio lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest10 patches 8 repliesIn review
  2. v49 patches 6 repliesSuperseded
  3. v32 patches 9 repliesSuperseded

Changes in v5 from the cover letter

- Patch 1: Integrate some of Andy Shevchenko's changes.
- Patch 4: Split patch up as requested by Andy Shevchenko.
- Patch 5: Split this patch from the patch number 4, to keep bug fix separate from style fix.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10iio: light: gp2ap020a00f: simplify locking with guard()drivers/iio/light/gp2ap020a00f.c+35 -751 reply
2/10iio: light: gp2ap020a00f: correct return type to intdrivers/iio/light/gp2ap020a00f.c+9 -40 replies
3/10iio: light: gp2ap020a00f: Use correct types for 16-bit LE datadrivers/iio/light/gp2ap020a00f.c+11 -120 replies
4/10iio: light: gp2ap020a00f: Return directly from the switch casesdrivers/iio/light/gp2ap020a00f.c+24 -361 reply
5/10iio: light: gp2ap020a00f: Fix possible error swallowdrivers/iio/light/gp2ap020a00f.c+6 -82 replies
6/10iio: light: gp2ap020a00f: Replace custom implementation of min()drivers/iio/light/gp2ap020a00f.c+3 -30 replies
7/10iio: light: gp2ap020a00f: Use temporary variable for struct devicedrivers/iio/light/gp2ap020a00f.c+16 -180 replies
8/10iio: light: gp2ap020a00f: Explicitly use string literal for driver namedrivers/iio/light/gp2ap020a00f.c+2 -60 replies
9/10iio: light: gp2ap020a00f: Remove trailing comma in termination entrydrivers/iio/light/gp2ap020a00f.c+1 -10 replies
10/10iio: light: gp2ap020a00f: Join some lines of code to be a single linedrivers/iio/light/gp2ap020a00f.c+13 -260 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/10R-b
2/10R-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

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

Read the v5 thread

Cover letter [PATCH v5 00/10] General clean up and bug fixes

This series performs a general cleanup of the gp2ap020a00f IIO driver.

It integrates my original work switching to the guard() cleanup handler, fixing a signedness warning from Smatch, an error swallow bug originally spotted by Andy Shevchenko which I expanded to cover both buffer setup functions and general cleanups written by Andy Shevchenko [1].

v5:
- Patch 1: Integrate some of Andy Shevchenko's changes.
- Patch 4: Split patch up as requested by Andy Shevchenko.
- Patch 5: Split this patch from the patch number 4, to keep bug fix separate from style fix.
v4:
- Integrated Andy Shevchenko's 7-patch cleanup series.
- Patch 1: Removed redundant 'err' variable and whitespace issues as suggested by Andy.
- Patch 2: Added Reviewed-by tag from Andy Shevchenko.
- Patch 5: Updated commit message to describe the pre-existing bug fix in gp2ap020a00f_buffer_predisable() where errors could be swallowed.
v3:
- Addressed initial feedback and simplified locking logic.

[1] https://lore.kernel.org/all/[email protected]/

Andy Shevchenko (7):
iio: light: gp2ap020a00f: Use correct types for 16-bit LE data
iio: light: gp2ap020a00f: Return directly from the switch cases
iio: light: gp2ap020a00f: Replace custom implementation of min()
iio: light: gp2ap020a00f: Use temporary variable for struct device
iio: light: gp2ap020a00f: Explicitly use string literal for driver
name
iio: light: gp2ap020a00f: Remove trailing comma in termination entry
iio: light: gp2ap020a00f: Join some lines of code to be a single line

Ethan Tidmore (3):
iio: light: gp2ap020a00f: simplify locking with guard()
iio: light: gp2ap020a00f: correct return type to int
iio: light: gp2ap020a00f: Fix possible error swallow

 drivers/iio/light/gp2ap020a00f.c | 303 ++++++++++++-------------------
 1 file changed, 117 insertions(+), 186 deletions(-)
Signature · 1 line
2.53.0