Skip to content

Commit d520970

Browse files
Lakshmi-Sowjanyawsakernel
authored andcommitted
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>
1 parent f4e0ba5 commit d520970

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/i2c/busses/i2c-designware-pcidrv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ enum dw_pci_ctl_id_t {
3939
};
4040

4141
struct dw_scl_sda_cfg {
42-
u32 ss_hcnt;
43-
u32 fs_hcnt;
44-
u32 ss_lcnt;
45-
u32 fs_lcnt;
42+
u16 ss_hcnt;
43+
u16 fs_hcnt;
44+
u16 ss_lcnt;
45+
u16 fs_lcnt;
4646
u32 sda_hold;
4747
};
4848

0 commit comments

Comments
 (0)