i2c: pci1xxxx: prevent signed integer overflow
authorWolfram Sang <wsa@kernel.org>
Wed, 28 Sep 2022 20:12:14 +0000 (22:12 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 1 Oct 2022 22:59:24 +0000 (00:59 +0200)
commit228336f50711e9f0f47352483a8501e0c598845b
treec39b810d25ab8c810a11ff83034d5b5e81ae61bc
parent492baeb958b1a94b8d52ec3960f82079ebbbebfb
i2c: pci1xxxx: prevent signed integer overflow

Some constants need 'UL' markings, otherwise they are shifted into the
sign bit.

Fixes: 361693697249 ("i2c: microchip: pci1xxxx: Add driver for I2C host controller in multifunction endpoint of pci1xxxx switch")
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mchp-pci1xxxx.c