Skip to content

iio: light: clean out of_match_ptr and tidy headers

[email protected] linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7iio: light: bh1780: use mod_devicetable.h and drop of_match_ptr macrodrivers/iio/light/bh1780.c+2 -41 reply
2/7iio: light: cm32181: Add mod_devicetable.h and remove of_match_ptrdrivers/iio/light/cm32181.c+2 -11 reply
3/7iio: light: cm3232: Add mod_devicetable.h include and drop of_match_ptrdrivers/iio/light/cm3232.c+2 -11 reply
4/7iio: light: gp2ap020a00f: Swap of.h for mod_devicetable.h + drop of_match_ptrdrivers/iio/light/gp2ap020a00f.c+2 -41 reply
5/7iio: light: opt3001: Add mod_devicetable.h and drop use of of_match_ptrdrivers/iio/light/opt3001.c+2 -11 reply
6/7iio: light: st_uvis25: Add mod_devicetable.h and drop of_match_ptrdrivers/iio/light/st_uvis25_i2c.c drivers/iio/light/st_uvis25_spi.c+4 -21 reply
7/7iio: light: vl6180: swap of.h for mod_devicetable.h and drop of_match_ptrdrivers/iio/light/vl6180.c+1 -13 replies

Reviews trailers per patch

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

PatchAlexandru Ardelean
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v1 thread

Cover letter [PATCH 0/7] iio: light: clean out of_match_ptr and tidy headers

From: Jonathan Cameron <[email protected]>

Hi All,

Given we keep having to explain to people that of_match_ptr is less than ideal now we have the option of ACPI DSDT using PRP0001 and the compatible, it seems sensible to reduce the number of instances that people might copy for a new driver.

Added theoretical benefit is that we can probe all these drivers from appropriate DSDT (though I doubt anyone will).

I'm sending this first set out to see if anyone has strong views against doing this for at least the simple drivers that have no other device tree dependence. Obviously more work would be needed to remove use of of_match_ptr from IIO completely.

Light sensors picked as a starting point as they tend to be simple.

I may do follow ups in larger blocks to avoid so many small patches (or indeed flatten these into one when applying)

Thanks

Jonathan

Jonathan Cameron (7):
iio: light: bh1780: use mod_devicetable.h and drop of_match_ptr macro
iio: light: cm32181: Add mod_devicetable.h and remove of_match_ptr
iio: light: cm3232: Add mod_devicetable.h include and drop
of_match_ptr
iio: light: gp2ap020a00f: Swap of.h for mod_devicetable.h + drop
of_match_ptr
iio: light: opt3001: Add mod_devicetable.h and drop use of
of_match_ptr
iio: light: st_uvis25: Add mod_devicetable.h and drop of_match_ptr
iio: light: vl6180: swap of.h for mod_devicetable.h and drop
of_match_ptr

 drivers/iio/light/bh1780.c        | 6 ++----
 drivers/iio/light/cm32181.c       | 3 ++-
 drivers/iio/light/cm3232.c        | 3 ++-
 drivers/iio/light/gp2ap020a00f.c  | 6 ++----
 drivers/iio/light/opt3001.c       | 3 ++-
 drivers/iio/light/st_uvis25_i2c.c | 3 ++-
 drivers/iio/light/st_uvis25_spi.c | 3 ++-
 drivers/iio/light/vl6180.c        | 2 +-
 8 files changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.26.1