]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
i2c: designware-pci: Fix to change data types of hcnt and lcnt parameters
authorLakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com>
Wed, 15 Dec 2021 15:12:01 +0000 (17:12 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:02:59 +0000 (11:02 +0100)
commitdb6b0d71797fea7cbda02f0597a1663243f4b00b
treee0d482258b3c6f0985d16dc78cb1f2948981e4b3
parentdfeba6b23db3c3af580757562d433b270c3caa6e
i2c: designware-pci: Fix to change data types of hcnt and lcnt parameters

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit d52097010078c1844348dc0e467305e5f90fd317 ]

The data type of hcnt and lcnt in the struct dw_i2c_dev is of type u16.
It's better to have same data type in struct dw_scl_sda_cfg as well.

Reported-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/i2c/busses/i2c-designware-pcidrv.c