Re: [PATCH 2/3] iio: adc: stm32-adc: add power management support

2018-11-25 Thread Jonathan Cameron
On Tue, 20 Nov 2018 11:12:31 +0100 Fabrice Gasnier wrote: > 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 Whilst I'll be the first to admit that

[PATCH 2/3] iio: adc: stm32-adc: add power management support

2018-11-20 Thread Fabrice Gasnier
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 --- drivers/iio/adc/stm32-adc-core.c | 182 +++ drivers/iio/adc/stm32-ad