Skip to content

iio: light: Sparse friendly claim of direct mode

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18iio: light: apds9306: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/apds9306.c+3 -43 replies
2/18iio: light: gp2ap020a00f: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/gp2ap020a00f.c+3 -40 replies
3/18iio: light: isl29125: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/isl29125.c+3 -40 replies
4/18iio: light: as73211: Use guard() and move mode switch into inner write_raw fucntiondrivers/iio/light/as73211.c+14 -161 reply
5/18iio: light: as73211: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/as73211.c+7 -90 replies
6/18iio: light: ltr501: Factor out IIO_INFO_RAW leg of read_raw() callback.drivers/iio/light/ltr501.c+31 -240 replies
7/18iio: light: ltr501: Factor out core of write_raw() where direct mode claim is held.drivers/iio/light/ltr501.c+46 -480 replies
8/18iio: light: ltr501: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/ltr501.c+9 -120 replies
9/18iio: light: opt4060: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/opt4060.c+3 -22 replies
10/18iio: light: rohm-bu27034: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/rohm-bu27034.c+6 -81 reply
11/18iio: light: rpr0521: Factor out handling of IIO_INFO_RAW and use guard()drivers/iio/light/rpr0521.c+34 -230 replies
12/18iio: light: rpr0521: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/rpr0521.c+2 -40 replies
13/18iio: light: si1145: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/si1145.c+11 -140 replies
14/18iio: light: st_uvis25: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/st_uvis25_core.c+3 -40 replies
15/18iio: light: tcs3414: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/tcs3414.c+4 -50 replies
16/18iio: light: tcs3472: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/tcs3472.c+4 -50 replies
17/18iio: light: vcnl4000: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/vcnl4000.c+41 -374 replies
18/18iio: light: vcnl4035: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/light/vcnl4035.c+26 -160 replies

Reviews trailers per patch

4 of 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMatti VaittinenDavid LechnerSubhajit GhoshPer-Daniel OlssonAstrid Rost
SeriesR-b
1/18A-b
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18A-b T-b R-b
10/18A-b
11/18
12/18
13/18
14/18
15/18
16/18
17/18T-b R-b R-b
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/18] iio: light: Sparse friendly claim of direct mode

From: Jonathan Cameron <[email protected]>

Note that a number of the drivers touched in this series have no obvious active maintainer, so it would be much appreciated if anyone has time to take a look! It is a large series so feel free to review any you have time to look at rather than feeling you need to look at the whole thing!

This is effectively part 4 of what will probably be around 7 series focused on moving from iio_device_claim/release_direct_mode() to iio_device_claim/release_direct(). The new form is more consistent with conditional locking semantics and sparse markings have been added that let us detect miss-balance between claim and release.

More details can be found in the cover letter of the first series:
https://lore.kernel.org/all/[email protected]/

This series focuses on the light sensor drivers.

Jonathan Cameron (18):
iio: light: apds9306: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: gp2ap020a00f: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: isl29125: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: as73211: Use guard() and move mode switch into inner
write_raw fucntion
iio: light: as73211: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: ltr501: Factor out IIO_INFO_RAW leg of read_raw()
callback.
iio: light: ltr501: Factor out core of write_raw() where direct mode
claim is held.
iio: light: ltr501: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: opt4060: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: rohm-bu27034: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: rpr0521: Factor out handling of IIO_INFO_RAW and use

    guard()

iio: light: rpr0521: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: si1145: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: st_uvis25: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: tcs3414: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: tcs3472: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: vcnl4000: Switch to sparse friendly
iio_device_claim/release_direct()
iio: light: vcnl4035: Switch to sparse friendly
iio_device_claim/release_direct()

 drivers/iio/light/apds9306.c       |   7 +-
 drivers/iio/light/as73211.c        |  42 ++++----
 drivers/iio/light/gp2ap020a00f.c   |   7 +-
 drivers/iio/light/isl29125.c       |   7 +-
 drivers/iio/light/ltr501.c         | 164 +++++++++++++++--------------
 drivers/iio/light/opt4060.c        |   5 +-
 drivers/iio/light/rohm-bu27034.c   |  14 ++-
 drivers/iio/light/rpr0521.c        |  63 ++++++-----
 drivers/iio/light/si1145.c         |  25 ++---
 drivers/iio/light/st_uvis25_core.c |   7 +-
 drivers/iio/light/tcs3414.c        |   9 +-
 drivers/iio/light/tcs3472.c        |   9 +-
 drivers/iio/light/vcnl4000.c       |  78 +++++++-------
 drivers/iio/light/vcnl4035.c       |  42 +++++---
 14 files changed, 245 insertions(+), 234 deletions(-)
Signature · 1 line
2.48.1