iio: dummy: events: Add missing break
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 29 Sep 2017 13:24:05 +0000 (15:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Oct 2017 10:17:18 +0000 (11:17 +0100)
commitbe94a6f6d488b4767662e8949dc62361bd1d6311
treed907b9a78cc2f96dc96f9afad24fa51b884ddb84
parent13ffe9a26df4e156363579b25c904dd0b1e31bfb
iio: dummy: events: Add missing break

Add missing break in iio_simple_dummy_write_event_config() for the voltage
threshold event enable attribute. Without this writing to the
in_voltage0_thresh_rising_en always returns -EINVAL even though the change
was correctly applied.

Fixes: 3e34e650db197 ("iio: dummy: Demonstrate the usage of new channel types")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dummy/iio_simple_dummy_events.c