Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e161ef7c authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Jonathan Cameron
Browse files

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 82d65f9d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}