[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZF92yNO4ypk-Ue8+ygGo8UvQaJ_vs=qzAOXOShEO=QyQ@mail.gmail.com>
Date: Sat, 28 Aug 2021 00:35:51 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Alexandru Ardelean <aardelean@...iqon.com>
Cc: linux-iio <linux-iio@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Denis CIOCCA <denis.ciocca@...com>,
Jonathan Cameron <jic23@...nel.org>,
Lee Jones <lee.jones@...aro.org>,
Andy Shevchenko <andy.shevchenko@...il.com>
Subject: Re: [PATCH v3 5/5] iio: st_sensors: remove reference to parent device
object on st_sensor_data
On Mon, Aug 23, 2021 at 1:22 PM Alexandru Ardelean
<aardelean@...iqon.com> wrote:
> The idea behind it, is that all devm_ calls in ST sensors are bound to the
> parent device object.
>
> However, the reference to that object is kept on both the st_sensor_data
> struct and the IIO object parent (indio_dev->dev.parent).
>
> This change only adds a bit consistency and uses the reference stored on
> indio_dev->dev.parent, to enforce the assumption that all ST sensors' devm_
> calls are bound to the same reference as the one store on st_sensor_data.
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com>
> Signed-off-by: Alexandru Ardelean <aardelean@...iqon.com>
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists