]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iio: sca3000: Fix missing return in switch
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 7 Jul 2018 17:44:01 +0000 (12:44 -0500)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:45:44 +0000 (19:45 -0600)
commitcf6db3e52cf9872efec45aca88c619a8bbb83051
tree258faa66c25a18463338cf41868a5de76b8401ea
parent38408e15650071a2f3e2c65737a35af97ad9191b
iio: sca3000: Fix missing return in switch

BugLink: https://bugs.launchpad.net/bugs/1835972
commit c5b974bee9d2ceae4c441ae5a01e498c2674e100 upstream.

The IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY case is missing a
return and will fall through to the default case and errorenously
return -EINVAL.

Fix this by adding in missing *return ret*.

Fixes: 626f971b5b07 ("staging:iio:accel:sca3000 Add write support to the low pass filter control")
Reported-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/iio/accel/sca3000.c