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>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
be94a6f6 13ffe9a2

+1
+1
drivers/iio/dummy/iio_simple_dummy_events.c
··· 72 72 st->event_en = state; 73 73 else 74 74 return -EINVAL; 75 + break; 75 76 default: 76 77 return -EINVAL; 77 78 }