i2c: amd8111: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 3 Jul 2018 19:07:51 +0000 (14:07 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 8 Aug 2018 20:28:46 +0000 (22:28 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-amd8111.c

index 95a80a8f81b55a2c56633a2980c821e5b0714875..134567f3019fb50ead037861a11eb3576b634891 100644 (file)
@@ -384,6 +384,7 @@ static s32 amd8111_access(struct i2c_adapter * adap, u16 addr,
                        if (status)
                                return status;
                        len = min_t(u8, len, I2C_SMBUS_BLOCK_MAX);
+                       /* fall through */
                case I2C_SMBUS_I2C_BLOCK_DATA:
                        for (i = 0; i < len; i++) {
                                status = amd_ec_read(smbus, AMD_SMB_DATA + i,