Message ID | 20211215151205.584264-2-jarkko.nikula@linux.intel.com |
---|---|
State | New |
Headers | show |
Series | [1/6] i2c: designware: Do not complete i2c read without RX_FULL interrupt | expand |
On Wed, Dec 15, 2021 at 05:12:01PM +0200, Jarkko Nikula wrote: > From: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com> > > 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. > > 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> Added my Reported-by and applied to for-next, thanks!
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; };