iio: trigger: stm32-timer: disable master mode when stopping
authorFabrice Gasnier <fabrice.gasnier@st.com>
Fri, 14 Feb 2020 16:46:35 +0000 (17:46 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 15 Feb 2020 18:41:00 +0000 (18:41 +0000)
commit29e8c8253d7d5265f58122c0a7902e26df6c6f61
tree336807b1b21644824b28b564c1648ae494693318
parente19ac9d9a978f8238a85a28ed624094a497d5ae6
iio: trigger: stm32-timer: disable master mode when stopping

Master mode should be disabled when stopping. This mainly impacts
possible other use-case after timer has been stopped. Currently,
master mode remains set (from start routine).

Fixes: 6fb34812c2a2 ("iio: stm32 trigger: Add support for TRGO2 triggers")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/trigger/stm32-timer-trigger.c