linux/drivers/iio/pressure
Linus Walleij ea7e586bdd iio: st_sensors: move regulator retrieveal to core
Currently the pressure sensor has code to retrieve and enable two
regulators for Vdd and Vdd IO, but actually these voltage inputs
are found on all of these ST sensors, so move the regulator
handling to the core and make sure all the ST sensors call these
functions on probe() and remove() to enable/disable power.

Here also mover over to obtaining the regulator from the *parent*
device of the IIO device, as the IIO device is created on-the-fly
in this very subsystem it very unlikely evert have any regulators
attached to it whatsoever. It is much more likely that the parent
is a platform device, possibly instantiated from a device tree,
which in turn have Vdd and Vdd IO supplied assigned to it.

Cc: Lee Jones <lee.jones@linaro.org>
Cc: Denis CIOCCA <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-04-26 11:52:42 +01:00
..
hid-sensor-press.c iio: hid-sensors: Added Pressure Sensor driver 2014-02-22 13:07:06 +00:00
Kconfig iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00
Makefile iio: hid-sensors: Added Pressure Sensor driver 2014-02-22 13:07:06 +00:00
mpl3115.c iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning 2014-01-11 16:15:32 +00:00
st_pressure_buffer.c iio:st_pressure: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:56 +01:00
st_pressure_core.c iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
st_pressure_i2c.c iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00
st_pressure_spi.c iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00
st_pressure.h iio:pressure: Add support for LPS25H pressure sensor 2014-02-22 13:09:53 +00:00