aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/light
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2019-08-13 21:38:51 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-14 09:37:36 +0200
commit31664caaf4d8f4f6771ca33744297d420f579ed8 (patch)
treea2e57b88bb061e6460238f9235d7e2ae8ed8b4b4 /drivers/iio/light
parentMerge tag 'iio-for-5.4a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next (diff)
downloadlinux-dev-31664caaf4d8f4f6771ca33744297d420f579ed8.tar.xz
linux-dev-31664caaf4d8f4f6771ca33744297d420f579ed8.zip
iio:light:noa1305: Fix missing break statement.
This got caught by the implicit fall through detection but is a bug rather than missing marking. Reported-by: 0-DAY kernel test infrastructure Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Fixes: 741172d18e8a ("iio: light: noa1305: Add support for NOA1305") Link: https://lore.kernel.org/r/20190813133851.14345-1-Jonathan.Cameron@huawei.com Cc: Gustavo Silva <gustavo@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r--drivers/iio/light/noa1305.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/light/noa1305.c b/drivers/iio/light/noa1305.c
index 7b859ae1044d..5ebfbc52f541 100644
--- a/drivers/iio/light/noa1305.c
+++ b/drivers/iio/light/noa1305.c
@@ -85,6 +85,7 @@ static int noa1305_scale(struct noa1305_priv *priv, int *val, int *val2)
case NOA1305_INTEGR_TIME_400MS:
*val = 100;
*val2 = 77 * 4;
+ break;
case NOA1305_INTEGR_TIME_200MS:
*val = 100;
*val2 = 77 * 2;