linux/include
Alexandru Ardelean f5d017938e iio: core: add iio_device_set_parent() helper
By default, the device allocation will also assign a parent device to the
IIO device object. In cases where devm_iio_device_alloc() is used,
sometimes the parent device must be different than the device used to
manage the allocation.

In that case, this helper should be used to change the parent, hence the
requirement to call this between allocation & registration.

This pattern/requirement is not very common in the IIO space, and it may be
cleaned up later.
But until then, assigning the parent manually between allocation &
registration is slightly easier.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-06-14 11:49:57 +01:00
..
acpi
asm-generic Rebase locking/kcsan to locking/urgent 2020-06-11 20:02:46 +02:00
clocksource
crypto
drm
dt-bindings iio: adc: Add PMIC7 ADC bindings 2020-06-14 11:49:18 +01:00
keys
kunit
kvm
linux iio: core: add iio_device_set_parent() helper 2020-06-14 11:49:57 +01:00
math-emu
media
misc
net Merge branch 'work.sysctl' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-10 16:05:54 -07:00
pcmcia
ras
rdma
scsi
soc
sound
target
trace block-5.8-2020-06-11 2020-06-11 16:07:33 -07:00
uapi virtio: features, fixes 2020-06-10 13:42:09 -07:00
vdso
video
xen