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 <[email protected]> Signed-off-by: Lakshmi Sowjanya D <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Jarkko Nikula <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent f4e0ba5 commit d520970

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)