projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d65f9
)
iio: mma8452: Mark expected switch fall-through
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Tue, 3 Jul 2018 19:44:36 +0000
(14:44 -0500)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Sat, 7 Jul 2018 17:04:08 +0000
(18:04 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Warning level 2 was used in this case: -Wimplicit-fallthrough=2
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mma8452.c
patch
|
blob
|
history
diff --git
a/drivers/iio/accel/mma8452.c
b/drivers/iio/accel/mma8452.c
index 7e3d82cff3d5f2537608c0a21d9bf277767e7bd8..31eccb8533d236ed973e95f4f20d65399b0760f2 100644
(file)
--- a/
drivers/iio/accel/mma8452.c
+++ b/
drivers/iio/accel/mma8452.c
@@
-1547,6
+1547,7
@@
static int mma8452_probe(struct i2c_client *client,
case FXLS8471_DEVICE_ID:
if (ret == data->chip_info->chip_id)
break;
+ /* else: fall through */
default:
return -ENODEV;
}