linux-stable/drivers/iio/common
Alexandru Ardelean 5363c6c17b iio: st_sensors: remove st_sensors_power_disable() function
This change converts the st_sensors_power_enable() function to use
devm_add_action_or_reset() handlers to register regulator_disable hooks for
when the drivers get unloaded.

The parent device of the IIO device object is used. This is based on the
assumption that all other devm_ calls in the ST sensors use this reference.

This makes the st_sensors_power_disable() un-needed.
Removing this also changes unload order a bit, as all ST drivers would call
st_sensors_power_disable() first and iio_device_unregister() after that.

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-4-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-09-14 12:00:31 +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
st_sensors iio: st_sensors: remove st_sensors_power_disable() function 2021-09-14 12:00:31 +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