summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-07-03 21:44:36 +0200
committerJonathan Cameron2018-07-07 19:04:08 +0200
commite161ef7c3c376f6807cdef7e8a2804b964dd7584 (patch)
tree53e7186086307242ed6ea7f7145b54869b987959 /drivers/iio
parentiio:imu:adis: Mark expected switch fall-throughs (diff)
downloadkernel-qcow2-linux-e161ef7c3c376f6807cdef7e8a2804b964dd7584.tar.gz
kernel-qcow2-linux-e161ef7c3c376f6807cdef7e8a2804b964dd7584.tar.xz
kernel-qcow2-linux-e161ef7c3c376f6807cdef7e8a2804b964dd7584.zip
iio: mma8452: Mark expected switch fall-through
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/mma8452.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
index 7e3d82cff3d5..31eccb8533d2 100644
--- 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;
}