Duje Mihanović, 2025-08-29T19:40:41+02:00: > On Friday, 29 August 2025 18:27:30 Central European Summer Time Jonathan > Cameron wrote: >> On Fri, 29 Aug 2025 00:17:41 +0200 >> >> Duje Mihanović <d...@dujemihanovic.xyz> wrote: >> > + iio->name = "88pm886-gpadc"; >> > + iio->dev.parent = dev; >> > + iio->dev.of_node = parent->of_node; >> >> Done in core code. >> https://elixir.bootlin.com/linux/v6.16.3/source/drivers/iio/industrialio-core. >> c#L2044 __iio_device_register() so unless you use it before that call >> shouldn't need this. >> >> I'm not sure what it is used for though. > > It was to explicitly bind the ADC (specifically, its IO channels) to > the PMIC devicetree node. However, since the core does this already, > will drop.
I believe the PMIC binding should probably be updated with the #io-channel-cells property then, isn't that so?