i2c: slave-eeprom: Use fallthrough pseudo-keyword
Subsystems (2)
PATCH v2 1/1 i2c: slave-eeprom: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
---
Changes in v2:
- Update URL. Use proper URL to Linux v5.7 documentation.
drivers/i2c/i2c-slave-eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-slave-eeprom.c +1 -1
@@ -66,7 +66,7 @@ static int i2c_slave_eeprom_slave_cb(struct i2c_client *client,case I2C_SLAVE_READ_PROCESSED :/* The previous byte made it to the bus, get next one */ eeprom->buffer_idx++; -/* fallthrough */ + fallthrough;case I2C_SLAVE_READ_REQUESTED :spin_lock (&eeprom->buffer_lock); *val = eeprom->buffer[eeprom->buffer_idx & eeprom->address_mask];
Signature · 1 line
2.27.0