iio: adc: stm32-adc: add power management support
authorFabrice Gasnier <fabrice.gasnier@st.com>
Tue, 20 Nov 2018 10:12:31 +0000 (11:12 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Nov 2018 13:15:24 +0000 (13:15 +0000)
commit9bdbb1139ca11301257fa1fae9cf71a598911efc
treef248a932c02e4432ca30e4795fea9749c84e37a8
parent0da98c7b28bd189bfe916d2203edf5b7792784fe
iio: adc: stm32-adc: add power management support

Add support for runtime PM & sleep. Move all regulator and clock management
to dedicated HW start/stop routines. Then rely on (runtime) PM OPS to
call them.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc-core.c
drivers/iio/adc/stm32-adc.c