linux-stable/drivers/iio/common
Linus Walleij aeb55fff38 iio: st_sensors: fetch and enable regulators unconditionally
These sensors all have Vdd and Vdd_IO lines. This means the
supplies are *not* optional (optional means that the supply is
optional in the electrical sense, not the software sense)
so we need to get the and enable them at all times.

If the device tree or board file does not define suitable
regulators for the component, it will be substituted by a
dummy regulator, or, if regulators are disabled altogether,
by stubs. There is no need to use the IS_ERR_OR_NULL() check
that is considered harmful.

Cc: Giuseppe Barba <giuseppe.barba@st.com>
Cc: Denis Ciocca <denis.ciocca@st.com>
Cc: Crestez Dan Leonard <leonard.crestez@intel.com>
Cc: Gregor Boirie <gregor.boirie@parrot.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-08-29 19:41:09 +01:00
..
hid-sensors iio: hid-sensors: use asynchronous resume 2016-08-21 20:12:32 +01:00
ms_sensors iio: common: ms_sensors: use tab for indention 2016-04-16 13:39:25 +01:00
ssp_sensors spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
st_sensors iio: st_sensors: fetch and enable regulators unconditionally 2016-08-29 19:41:09 +01:00
Kconfig Add meas-spec sensors common part 2015-10-04 14:58:02 +01:00
Makefile Add meas-spec sensors common part 2015-10-04 14:58:02 +01:00