diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-03 14:07:51 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-08-08 22:28:46 +0200 |
commit | ee87a0ce2f91aa4f4906a5f515152aa5019200ad (patch) | |
tree | 6da9ca46fe120de7ebd25fad5d849a9b13379102 /drivers/i2c | |
parent | 7957c2e276ee73e6c6cb1ab69e2372bd095c097a (diff) |
i2c: amd8111: Mark expected switch fall-through
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-amd8111.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-amd8111.c b/drivers/i2c/busses/i2c-amd8111.c index 95a80a8f81b5..134567f3019f 100644 --- a/drivers/i2c/busses/i2c-amd8111.c +++ b/drivers/i2c/busses/i2c-amd8111.c @@ -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, |