iio: adc: stm32-dfsdm: add PM support
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 25 Mar 2019 14:49:28 +0000 (15:49 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:21:12 +0000 (20:21 +0100)
commit6ec417d2f1a028705a1ae6f59d3e15344f6a4fbe
tree778a1127f07b5cd2d8646d64962b50c25582437f
parent9f57110d2e3de5411730f2cdd160d60f4b59acc5
iio: adc: stm32-dfsdm: add PM support

Add PM and runtime PM support to STM32 DFSDM drivers:
- stm32-dfsdm-core: manage clocks.
- stm32-dfsdm-adc: restore channels configuration upon resume. Also stop
  restart everything in case of buffer mode.

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