Skip to content

iio: remaining easy of_match_ptr removal and related.

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest38 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/38iio:potentiometer:ad5272: Drop of_match_ptr and CONFIG_OF protections.drivers/iio/potentiometer/ad5272.c+2 -30 replies
2/38iio:potentiometer:ds1803: Drop of_match_ptr and CONFIG_OF protectionsdrivers/iio/potentiometer/ds1803.c+2 -40 replies
3/38iio:potentiometer:max5432: Drop of_match_ptr and use generic fw accessorsdrivers/iio/potentiometer/max5432.c+4 -41 reply
4/38iio:potentiometer:max5481: Drop of_match_ptr and CONFIG_OF protections.drivers/iio/potentiometer/max5481.c+4 -60 replies
5/38iio:potentiometer:max5481: Drop invalid ACPI binding.drivers/iio/potentiometer/max5481.c+0 -131 reply
6/38iio:potentiometer:mcp4018: Drop of_match_ptr and CONFIG_OF protections.drivers/iio/potentiometer/mcp4018.c+4 -80 replies
7/38iio:potentiometer:mcp4131: Drop of_match_ptr and use generic fw interfaces.drivers/iio/potentiometer/mcp4131.c+4 -40 replies
8/38iio:potentiometer:mcp4531: Drop of_match_ptr and CONFIG_OF protections.drivers/iio/potentiometer/mcp4531.c+4 -70 replies
9/38iio:dac:ad5446: Drop of_match_ptr and CONFIG_OF protectionsdrivers/iio/dac/ad5446.c+2 -30 replies
10/38iio:dac:ad5592r: Drop of_match_ptr and ACPI_PTR protections.drivers/iio/dac/ad5592r.c+3 -40 replies
11/38iio:dac:ad5593r: Drop of_match_ptr and ACPI_PTR protections.drivers/iio/dac/ad5593r.c+3 -40 replies
12/38iio:dac:ad7303: Drop of_match_ptr protectiondrivers/iio/dac/ad7303.c+2 -10 replies
13/38iio:dac:mcp4725: drop of_match_ptr and use generic fw propertiesdrivers/iio/dac/mcp4725.c+7 -220 replies
14/38iio:dac:ti-dac082s085: Drop of_match_ptr and CONFIG_OF protectionsdrivers/iio/dac/ti-dac082s085.c+2 -30 replies
15/38iio:dac:ti-dac5571: Drop of_match_ptr and CONFIG_OF protectionsdrivers/iio/dac/ti-dac5571.c+2 -50 replies
16/38iio:potentiostat:lmp91000: Drop of_match_ptr and use generic fw accessorsdrivers/iio/potentiostat/lmp91000.c+5 -61 reply
17/38iio:pressure:icp10100: Drop of_match_ptr and CONFIG_OF protectionsdrivers/iio/pressure/icp10100.c+2 -10 replies
18/38iio:pressure:ms5611: Drop of_match_ptr and CONFIG_OF protectionsdrivers/iio/pressure/ms5611_i2c.c drivers/iio/pressure/ms5611_spi.c+4 -80 replies
19/38iio:pressure:ms5637: Drop of_match_ptr protectiondrivers/iio/pressure/ms5637.c+2 -10 replies
20/38iio:pressure:zpa2326: Drop of_match_ptr protectiondrivers/iio/pressure/zpa2326_i2c.c drivers/iio/pressure/zpa2326_spi.c+4 -80 replies
21/38iio:temperature:tsys01: Drop of_match_ptr protectiondrivers/iio/temperature/tsys01.c+2 -10 replies
22/38iio:temperature:tmp007: Drop of_match_ptr protectiondrivers/iio/temperature/tmp007.c+2 -20 replies
23/38iio:resolver:ad2s1200: Drop of_match_ptr protectiondrivers/iio/resolver/ad2s1200.c+2 -10 replies
24/38iio:chemical:ams-iaq-core: Drop of_match_ptr protectiondrivers/iio/chemical/ams-iaq-core.c+2 -11 reply
25/38iio:chemical:atlas-sensor: Drop of_match_ptr and use generic fw accessorsdrivers/iio/chemical/atlas-sensor.c+4 -61 reply
26/38iio:chemical:sgp30: Use local variable dev to simplify codedrivers/iio/chemical/sgp30.c+10 -100 replies
27/38iio:chemical:sgp30: Drop of_match_ptr and use generic fw accessorsdrivers/iio/chemical/sgp30.c+4 -60 replies
28/38iio:chemical:vz89x: Introduce local struct device pointer.drivers/iio/chemical/vz89x.c+5 -41 reply
29/38iio:chemical:vz89x: Drop of_match_ptr protection and use generic fw accessorsdrivers/iio/chemical/vz89x.c+4 -71 reply
30/38iio:humidity:hdc100x: Drop of_match_ptr protection.drivers/iio/humidity/hdc100x.c+2 -11 reply
31/38iio:proximity:as3935: Use local struct device pointer to simplify code.drivers/iio/proximity/as3935.c+18 -201 reply
32/38iio:proximity:as3935: Drop of_match_ptr and use generic fw accessorsdrivers/iio/proximity/as3935.c+4 -41 reply
33/38iio:proximity:pulsedlight: Drop of_match_ptr protectiondrivers/iio/proximity/pulsedlight-lidar-lite-v2.c+2 -11 reply
34/38iio:magn:ak8975: Drop of_match_ptr and ACPI_PTR protections.drivers/iio/magnetometer/ak8975.c+3 -51 reply
35/38iio:magn:ak8974: Drop of_match_ptr protectiondrivers/iio/magnetometer/ak8974.c+2 -11 reply
36/38iio:humidity:htu21: Drop of_match_ptr protectiondrivers/iio/humidity/htu21.c+2 -10 replies
37/38iio:humidity:si7020: Drop of_match_ptr protectiondrivers/iio/humidity/si7020.c+2 -10 replies
38/38iio:health:max30102: Drop of_match_ptr and use generic fw accessorsdrivers/iio/health/max30102.c+5 -61 reply

Reviews trailers per patch

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

PatchJonathan AlbrieuxAndy ShevchenkoMatt RanostayMartin KaiserLinus Walleij
SeriesR-b
1/38
2/38
3/38R-b
4/38
5/38
6/38
7/38
8/38
9/38
10/38
11/38
12/38
13/38
14/38
15/38
16/38A-b
17/38
18/38
19/38
20/38
21/38
22/38
23/38
24/38A-b
25/38A-b
26/38
27/38
28/38A-b
29/38A-b
30/38A-b
31/38A-b
32/38A-b
33/38A-b
34/38A-b T-b
35/38R-b
36/38
37/38
38/38A-b

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/38] iio: remaining easy of_match_ptr removal and related.

From: Jonathan Cameron <[email protected]>

This bumper set removes all the remaining cases where of_match_ptr is mostly serving to prevent use of the device via ACPI PRP0001 and complicating the code. The main aim of this set is to reduce the chances of it being used in future drivers.
It also includes some related refactorings, use of generic fw accessors, dropping of CONFIG_OF and lots of header changes inline with the above.

For examples of how to use PRP0001 see https://github.com/westeri/meta-acpi
which is an excellent resource from which to copy snippets of DSDT tables.

It may well not be worth changing the remaining 10 IIO drivers and I certainly don't plan to do so anytime soon.

Jonathan Cameron (38):
iio:potentiometer:ad5272: Drop of_match_ptr and CONFIG_OF protections. iio:potentiometer:ds1803: Drop of_match_ptr and CONFIG_OF protections iio:potentiometer:max5432: Drop of_match_ptr and use generic fw
accessors
iio:potentiometer:max5481: Drop of_match_ptr and CONFIG_OF
protections.
iio:potentiometer:max5481: Drop invalid ACPI binding. iio:potentiometer:mcp4018: Drop of_match_ptr and CONFIG_OF
protections.
iio:potentiometer:mcp4131: Drop of_match_ptr and use generic fw
interfaces.
iio:potentiometer:mcp4531: Drop of_match_ptr and CONFIG_OF
protections.
iio:dac:ad5446: Drop of_match_ptr and CONFIG_OF protections iio:dac:ad5592r: Drop of_match_ptr and ACPI_PTR protections. iio:dac:ad5593r: Drop of_match_ptr and ACPI_PTR protections. iio:dac:ad7303: Drop of_match_ptr protection iio:dac:mcp4725: drop of_match_ptr and use generic fw properties iio:dac:ti-dac082s085: Drop of_match_ptr and CONFIG_OF protections iio:dac:ti-dac5571: Drop of_match_ptr and CONFIG_OF protections iio:potentiostat:lmp91000: Drop of_match_ptr and use generic fw
accessors
iio:pressure:icp10100: Drop of_match_ptr and CONFIG_OF protections iio:pressure:ms5611: Drop of_match_ptr and CONFIG_OF protections iio:pressure:ms5637: Drop of_match_ptr protection iio:pressure:zpa2326: Drop of_match_ptr protection iio:temperature:tsys01: Drop of_match_ptr protection iio:temperature:tmp007: Drop of_match_ptr protection iio:resolver:ad2s1200: Drop of_match_ptr protection iio:chemical:ams-iaq-core: Drop of_match_ptr protection iio:chemical:atlas-sensor: Drop of_match_ptr and use generic fw
accessors
iio:chemical:sgp30: Use local variable dev to simplify code iio:chemical:sgp30: Drop of_match_ptr and use generic fw accessors iio:chemical:vz89x: Introduce local struct device pointer. iio:chemical:vz89x: Drop of_match_ptr protection and use generic fw
accessors
iio:humidity:hdc100x: Drop of_match_ptr protection. iio:proximity:as3935: Use local struct device pointer to simplify
code.
iio:proximity:as3935: Drop of_match_ptr and use generic fw accessors iio:proximity:pulsedlight: Drop of_match_ptr protection iio:magn:ak8975: Drop of_match_ptr and ACPI_PTR protections. iio:magn:ak8974: Drop of_match_ptr protection iio:humidity:htu21: Drop of_match_ptr protection iio:humidity:si7020: Drop of_match_ptr protection iio:health:max30102: Drop of_match_ptr and use generic fw accessors

 drivers/iio/chemical/ams-iaq-core.c           |  3 +-
 drivers/iio/chemical/atlas-sensor.c           | 10 ++---
 drivers/iio/chemical/sgp30.c                  | 28 ++++++------
 drivers/iio/chemical/vz89x.c                  | 18 ++++----
 drivers/iio/dac/ad5446.c                      |  5 +--
 drivers/iio/dac/ad5592r.c                     |  7 ++-
 drivers/iio/dac/ad5593r.c                     |  7 ++-
 drivers/iio/dac/ad7303.c                      |  3 +-
 drivers/iio/dac/mcp4725.c                     | 29 +++---------
 drivers/iio/dac/ti-dac082s085.c               |  5 +--
 drivers/iio/dac/ti-dac5571.c                  |  7 +--
 drivers/iio/health/max30102.c                 | 11 +++--
 drivers/iio/humidity/hdc100x.c                |  3 +-
 drivers/iio/humidity/htu21.c                  |  3 +-
 drivers/iio/humidity/si7020.c                 |  3 +-
 drivers/iio/magnetometer/ak8974.c             |  3 +-
 drivers/iio/magnetometer/ak8975.c             |  8 ++--
 drivers/iio/potentiometer/ad5272.c            |  5 +--
 drivers/iio/potentiometer/ds1803.c            |  6 +--
 drivers/iio/potentiometer/max5432.c           |  8 ++--
 drivers/iio/potentiometer/max5481.c           | 23 ++--------
 drivers/iio/potentiometer/mcp4018.c           | 12 ++---
 drivers/iio/potentiometer/mcp4131.c           |  8 ++--
 drivers/iio/potentiometer/mcp4531.c           | 11 ++---
 drivers/iio/potentiostat/lmp91000.c           | 11 +++--
 drivers/iio/pressure/icp10100.c               |  3 +-
 drivers/iio/pressure/ms5611_i2c.c             |  6 +--
 drivers/iio/pressure/ms5611_spi.c             |  6 +--
 drivers/iio/pressure/ms5637.c                 |  3 +-
 drivers/iio/pressure/zpa2326_i2c.c            |  6 +--
 drivers/iio/pressure/zpa2326_spi.c            |  6 +--
 drivers/iio/proximity/as3935.c                | 44 +++++++++----------
 .../iio/proximity/pulsedlight-lidar-lite-v2.c |  3 +-
 drivers/iio/resolver/ad2s1200.c               |  3 +-
 drivers/iio/temperature/tmp007.c              |  4 +-
 drivers/iio/temperature/tsys01.c              |  3 +-
 36 files changed, 134 insertions(+), 190 deletions(-)
Signature · 1 line
2.28.0