Thread (11 messages) 11 messages, 3 authors, 2021-08-29

Re: [PATCH v3 5/5] iio: st_sensors: remove reference to parent device object on st_sensor_data

From: Linus Walleij <hidden>
Date: 2021-08-27 22:36:07
Also in: lkml

On Mon, Aug 23, 2021 at 1:22 PM Alexandru Ardelean
[off-list ref] 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 <redacted>
Signed-off-by: Alexandru Ardelean <redacted>
Reviewed-by: Linus Walleij <redacted>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help