linux/drivers/iio/accel
Gustavo A. R. Silva cb57f2eb01 iio: mma8452: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

This patch fixes the following warning:

drivers/iio/accel/mma8452.c: In function ‘mma8452_probe’:
drivers/iio/accel/mma8452.c:1581:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (ret == data->chip_info->chip_id)
      ^
drivers/iio/accel/mma8452.c:1584:2: note: here
  default:
  ^~~~~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-04-04 20:19:41 +01:00
..
adis16201.c
adis16209.c
adxl345_core.c iio:accel:adxl345: Change alignment to match paranthesis 2019-02-09 18:46:02 +00:00
adxl345_i2c.c iio: adxl345: move null check for i2c id at start of probe 2018-08-19 18:32:05 +01:00
adxl345_spi.c
adxl345.h
adxl372_i2c.c iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
adxl372_spi.c iio: adxl372: Refactor the driver 2018-09-08 15:28:27 +01:00
adxl372.c iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
adxl372.h iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
bma180.c
bma220_spi.c
bmc150-accel-core.c
bmc150-accel-i2c.c
bmc150-accel-spi.c
bmc150-accel.h
cros_ec_accel_legacy.c
da280.c
da311.c
dmard06.c
dmard09.c
dmard10.c
hid-sensor-accel-3d.c iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
Kconfig iio: st-accel: add support for lis3de 2018-11-16 18:32:30 +00:00
kxcjk-1013.c iio: accel: kxcjk1013: Add KIOX010A ACPI Hardware-ID 2018-11-25 12:35:26 +00:00
kxsd9-i2c.c
kxsd9-spi.c
kxsd9.c
kxsd9.h
Makefile iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
mc3230.c
mma7455_core.c
mma7455_i2c.c
mma7455_spi.c
mma7455.h
mma7660.c
mma8452.c iio: mma8452: mark expected switch fall-through 2019-04-04 20:19:41 +01:00
mma9551_core.c
mma9551_core.h
mma9551.c
mma9553.c
mxc4005.c
mxc6255.c
sca3000.c
ssp_accel_sensor.c
st_accel_buffer.c
st_accel_core.c iio: st_accel: use ACPI orientation data 2019-02-02 09:28:51 +00:00
st_accel_i2c.c iio: st-accel: add support for lis3de 2018-11-16 18:32:30 +00:00
st_accel_spi.c iio: st-accel: add support for lis3de 2018-11-16 18:32:30 +00:00
st_accel.h iio: st-accel: add support for lis3de 2018-11-16 18:32:30 +00:00
stk8ba50.c
stk8312.c