diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-03 21:10:55 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-08-08 22:28:51 +0200 |
commit | 1c02cbf7de0dc778bbd3735089ce903c8a55517d (patch) | |
tree | 898bc8d4a1d430b9a9ee0f61d3a5cc29e966a546 /drivers/i2c/busses/i2c-designware-pcidrv.c | |
parent | i2c: amd8111: Mark expected switch fall-through (diff) | |
download | linux-1c02cbf7de0dc778bbd3735089ce903c8a55517d.tar.xz linux-1c02cbf7de0dc778bbd3735089ce903c8a55517d.zip |
i2c: designware-pcidrv: 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>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-pcidrv.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-pcidrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index 86e1bd0b82e9..b4997be62f03 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -105,6 +105,7 @@ static int mfld_setup(struct pci_dev *pdev, struct dw_pci_controller *c) case 0x0817: c->bus_cfg &= ~DW_IC_CON_SPEED_MASK; c->bus_cfg |= DW_IC_CON_SPEED_STD; + /* fall through */ case 0x0818: case 0x0819: c->bus_num = pdev->device - 0x817 + 3; |