mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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: 741172d18e
("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>
This commit is contained in:
parent
6aed51d891
commit
31664caaf4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user