diff options
author | Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com> | 2021-12-15 17:12:01 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-12-16 22:13:32 +0100 |
commit | d52097010078c1844348dc0e467305e5f90fd317 (patch) | |
tree | ea7f1032ad5458391e20a07dcd986a6196e90dba /drivers/i2c | |
parent | f4e0ba52a89fc2f1b009b3f6af8e617ad1a3c315 (diff) | |
download | lwn-d52097010078c1844348dc0e467305e5f90fd317.tar.gz lwn-d52097010078c1844348dc0e467305e5f90fd317.zip |
i2c: designware-pci: Fix to change data types of hcnt and lcnt parameters
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-pcidrv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index 0f409a4c2da0..5b45941bcbdd 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -39,10 +39,10 @@ enum dw_pci_ctl_id_t { }; struct dw_scl_sda_cfg { - u32 ss_hcnt; - u32 fs_hcnt; - u32 ss_lcnt; - u32 fs_lcnt; + u16 ss_hcnt; + u16 fs_hcnt; + u16 ss_lcnt; + u16 fs_lcnt; u32 sda_hold; }; |