linux-sg2042/drivers/iio/common
Alexandru Ardelean e426965154 iio: st_sensors: remove reference to parent device object on st_sensor_data
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@gmail.com>
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210823112204.243255-6-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-09-14 12:00:32 +01:00
..
cros_ec_sensors iio: cros: unify hw fifo attributes without API changes 2021-03-25 19:13:52 +00:00
hid-sensors iio/drivers/hid-sensor: use HZ macros 2021-09-08 11:50:26 -07:00
ms_sensors iio:common:ms_sensors:ms_sensors_i2c: add support for alternative PROM layout 2021-01-22 08:52:07 +00:00
scmi_sensors iio: scmi: fix spelling of SPDX tag 2021-06-13 17:00:18 +01:00
ssp_sensors iio: ssp: use PLATFORM_DEVID_NONE 2020-09-29 17:27:06 +01:00
st_sensors iio: st_sensors: remove reference to parent device object on st_sensor_data 2021-09-14 12:00:32 +01:00
Kconfig iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00
Makefile iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00