iio: Fix missing parent device initalization
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | iio: stx104: Set parent devicedrivers/ | +1 | 2 replies | |
| 2/8 | iio: quad-8: Set parent devicedrivers/ | +1 | 1 reply | |
| 3/8 | iio: cio-dac: Set parent devicedrivers/ | +1 | 2 replies | |
| 4/8 | iio: max30100: Set parent devicedrivers/ | +1 | 1 reply | |
| 5/8 | iio: max30102: Set parent devicedrivers/ | +1 | 1 reply | |
| 6/8 | iio: lmp91000: Set parent devicedrivers/ | +1 | 2 replies | |
| 7/8 | iio: pulsedlight-lidar-lite-v2: Set parent devicedrivers/ | +1 | 2 replies | |
| 8/8 | iio: maxim_thermocouple: Set parent devicedrivers/ | +1 | 1 reply |
Reviews trailers per patch
5 of 8 patches have a Reviewed-by or Acked-by.
| Patch | William Breathitt Gray | Matt Ranostay |
|---|---|---|
| 1/8 | A-b | |
| 2/8 | A-b | |
| 3/8 | A-b | |
| 4/8 | ||
| 5/8 | ||
| 6/8 | R-b | |
| 7/8 | R-b | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] iio: Fix missing parent device initalization
Add parent device initialization to drivers that are currently missing it. Setting the parent device makes sure that the IIO device shows up at the right level in the device hierachy.
The following coccinelle semantic patch was used to find the offending drivers:
// <smpl>
@r1@
identifier indio_dev;
position p;
@@indio_dev->dev.parent = ...;
...
(
iio_device_register@p(indio_dev)
|
devm_iio_device_register@p(..., indio_dev)
)
@@
position p != r1.p;
identifier indio_dev;
@@
(
*iio_device_register@p(indio_dev)
|
*devm_iio_device_register@p(..., indio_dev)
)
// </smpl>
- Lars
Lars-Peter Clausen (8):
iio: stx104: Set parent device
iio: quad-8: Set parent device
iio: cio-dac: Set parent device
iio: max30100: Set parent device
iio: max30102: Set parent device
iio: lmp91000: Set parent device
iio: pulsedlight-lidar-lite-v2: Set parent device
iio: maxim_thermocouple: Set parent device
drivers/iio/adc/stx104.c | 1 + drivers/iio/counter/104-quad-8.c | 1 + drivers/iio/dac/cio-dac.c | 1 + drivers/iio/health/max30100.c | 1 + drivers/iio/health/max30102.c | 1 + drivers/iio/potentiostat/lmp91000.c | 1 + drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 1 + drivers/iio/temperature/maxim_thermocouple.c | 1 + 8 files changed, 8 insertions(+)
Signature · 1 line
2.1.4