]> git.baikalelectronics.ru Git - kernel.git/commit
iio: core: fix/re-introduce back parent assignment
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 21 Jul 2020 10:24:07 +0000 (13:24 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 22 Jul 2020 13:36:23 +0000 (14:36 +0100)
commitccb805035e9502627fa6703508b95aceb2a37a4a
treec225fa1ed6df9941e33e402bb06100cc56a59f74
parent4d47e55637c02e636ecf11e8e16e71f87adfd225
iio: core: fix/re-introduce back parent assignment

This was introduced initially via commit b7d059cba4d3a ("iio: core: pass
parent device as parameter during allocation"), but was accidentally
removed via commit 6af7991fd06e3 ("iio: core: wrap IIO device into an
iio_dev_opaque object").

This looks like a rebase gone wrong, and ends up breaking devicetree
bindings of IIO clients.

This change adds back the parent assignment.

Fixes 6af7991fd06e3: ("iio: core: wrap IIO device into an iio_dev_opaque object")
Reported-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Tested-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-core.c