Borislav Petkov e35c93695c i2c: ismt: Fix undefined behavior due to shift overflowing the constant
Fix:

  drivers/i2c/busses/i2c-ismt.c: In function ‘ismt_hw_init’:
  drivers/i2c/busses/i2c-ismt.c:770:2: error: case label does not reduce to an integer constant
    case ISMT_SPGT_SPD_400K:
    ^~~~
  drivers/i2c/busses/i2c-ismt.c:773:2: error: case label does not reduce to an integer constant
    case ISMT_SPGT_SPD_1M:
    ^~~~

See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory
details as to why it triggers with older gccs only.

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Seth Heasley <seth.heasley@intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-04-15 23:49:02 +02:00
..
2020-09-27 15:14:16 +02:00
2021-04-14 10:20:00 +02:00
2021-01-05 17:30:45 +01:00
2021-08-19 19:18:24 +02:00
2021-08-19 19:18:17 +02:00
2021-04-14 10:20:45 +02:00
2022-02-07 17:03:36 +01:00
2021-10-02 09:32:06 +02:00
2022-02-11 18:32:02 +01:00
2022-03-01 16:05:01 +01:00
2021-08-19 19:18:24 +02:00
2021-04-17 22:00:58 +02:00
2022-01-14 18:50:52 -05:00
2022-03-02 22:26:41 +01:00
2021-11-23 10:00:12 +01:00