linux/drivers/iio/gyro
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
..
adis16080.c iio:adis16080: Use spi_sync_transfer() 2013-10-05 11:58:54 +01:00
adis16130.c iio: gyro: adis16130: Use devm_iio_device_register 2013-11-24 21:07:17 +00:00
adis16136.c iio: gyro: adis16136: Use devm_iio_device_alloc 2013-08-17 15:50:54 +01:00
adis16260.c iio: gyro: adis16260: Remove redundant break 2013-09-14 11:37:00 +01:00
adxrs450.c iio: gyro: adxrs450: Use devm_iio_device_register 2013-11-24 21:07:18 +00:00
hid-sensor-gyro-3d.c Merge v3.13-rc2 into staging-next 2013-12-02 16:39:07 -08:00
itg3200_buffer.c iio:itg3200: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:56 +01:00
itg3200_core.c iio:gyro:itg3200 - drop unreachable return ret. Highlighted by smatch 2014-03-16 18:00:35 +00:00
Kconfig iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00
Makefile staging:iio:adis16260: Move out of staging 2013-08-03 18:41:22 +01:00
st_gyro_buffer.c iio:st_gyro: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:46 +01:00
st_gyro_core.c iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
st_gyro_i2c.c iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00
st_gyro_spi.c iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00
st_gyro.h iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00