iio: dummy: events: Add missing break
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 29 Sep 2017 13:24:05 +0000 (15:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2017 08:38:06 +0000 (10:38 +0200)
commit09fad6f25254198350f91537417d65915a56ab2e
tree2ef46ba15897a2805abdc2e0b895a3e42c32bb70
parent6bb16fa5812750dcddee7f6b54c1c729b345b856
iio: dummy: events: Add missing break

commit be94a6f6d488b4767662e8949dc62361bd1d6311 upstream.

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>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dummy/iio_simple_dummy_events.c