iio: trigger: stm32-timer: fix write_raw return value
authorFabrice Gasnier <fabrice.gasnier@st.com>
Thu, 27 Jul 2017 16:18:58 +0000 (18:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 30 Jul 2017 13:44:28 +0000 (14:44 +0100)
commit1987a08cd989fd9e5690e90a04e70046e93315f4
treec5f32a3a34184f0563b8dbd4c2bee437595b0194
parent50b39608efb1e60f334f9b59128fd6d970bfd5a6
iio: trigger: stm32-timer: fix write_raw return value

Fixes: 4adec7da0536 ("iio: stm32 trigger: Add quadrature encoder device")

IIO core expects zero as return value for write_raw() callback
in case of success.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/trigger/stm32-timer-trigger.c