]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
iio: dummy: events: Add missing break
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 29 Sep 2017 13:24:05 +0000 (15:24 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 16 Nov 2017 13:23:10 +0000 (11:23 -0200)
commit2fb75607e43dbac4e5012a1d221fefed6cdbddb0
treed9f422bd015a108157e21c2b68ded5a54709402b
parent4aa43c706b9c665c14a995bd9c592123feae2a4c
iio: dummy: events: Add missing break

BugLink: http://bugs.launchpad.net/bugs/1731951
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/iio/dummy/iio_simple_dummy_events.c