Skip to content

iio: Fix missing parent device initalization

Lars-Peter Clausen linux-iio 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8iio: stx104: Set parent devicedrivers/iio/adc/stx104.c+1 -02 replies
2/8iio: quad-8: Set parent devicedrivers/iio/counter/104-quad-8.c+1 -01 reply
3/8iio: cio-dac: Set parent devicedrivers/iio/dac/cio-dac.c+1 -02 replies
4/8iio: max30100: Set parent devicedrivers/iio/health/max30100.c+1 -01 reply
5/8iio: max30102: Set parent devicedrivers/iio/health/max30102.c+1 -01 reply
6/8iio: lmp91000: Set parent devicedrivers/iio/potentiostat/lmp91000.c+1 -02 replies
7/8iio: pulsedlight-lidar-lite-v2: Set parent devicedrivers/iio/proximity/pulsedlight-lidar-lite-v2.c+1 -02 replies
8/8iio: maxim_thermocouple: Set parent devicedrivers/iio/temperature/maxim_thermocouple.c+1 -01 reply

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchWilliam Breathitt GrayMatt Ranostay
1/8A-b
2/8A-b
3/8A-b
4/8
5/8
6/8R-b
7/8R-b
8/8

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/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