Re: [PATCH] iio: core: fix/re-introduce back parent assignment

From: Dmitry Baryshkov
Date: Tue Jul 21 2020 - 06:34:33 EST


ÐÑ, 21 ÐÑÐ. 2020 Ð. Ð 13:24, Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx>:
>
> This was introduced initially via commit 78289b4a58b58 ("iio: core: pass
> parent device as parameter during allocation"), but was accidentally
> removed via commit 6d4ebd565d15f ("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 6d4ebd565d15f: ("iio: core: wrap IIO device into an iio_dev_opaque object")
> Reported-by: Dmitry Baryshkov <dbaryshkov@xxxxxxxxx>
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx>

Tested-by: Dmitry Baryshkov <dbaryshkov@xxxxxxxxx>

--
With best wishes
Dmitry