commit | a359bb2a55f384bb93349ddf9d30b20b37e02e8a | [log] [tgz] |
---|---|---|
author | Fabrice Gasnier <fabrice.gasnier@st.com> | Thu Aug 03 11:22:17 2017 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Aug 20 15:21:47 2017 +0100 |
tree | 35143eabceeb0d608417a179bb07c2964d818afa | |
parent | fdd0d32eb95f135041236a6885d9006315aa9a1d [diff] |
iio: trigger: stm32-timer: fix get trigger mode Fix reading trigger mode, when other bit-fields are set. SMCR register value must be masked to read SMS (slave mode selection) only. Fixes: 9eba381 ("iio: make stm32 trigger driver use INDIO_HARDWARE_TRIGGERED mode") Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>