Skip to content

Commit 7a48e71

Browse files
andy-shevAndi Shyti
authored andcommitted
i2c: designware: Use sda_hold_time variable name everywhere
Currently the PCI glue driver uses sda_hold variable name, while the rest of the driver use sda_hold_time. This makes things harder to grep. Use sda_hold_time variable name everywhere. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 86bdd8e commit 7a48e71

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct dw_scl_sda_cfg {
5151
u16 fs_hcnt;
5252
u16 ss_lcnt;
5353
u16 fs_lcnt;
54-
u32 sda_hold;
54+
u32 sda_hold_time;
5555
};
5656

5757
struct dw_pci_controller {
@@ -76,7 +76,7 @@ static struct dw_scl_sda_cfg byt_config = {
7676
.fs_hcnt = 0x55,
7777
.ss_lcnt = 0x200,
7878
.fs_lcnt = 0x99,
79-
.sda_hold = 0x6,
79+
.sda_hold_time = 0x6,
8080
};
8181

8282
/* Haswell HCNT/LCNT/SDA hold time */
@@ -85,14 +85,14 @@ static struct dw_scl_sda_cfg hsw_config = {
8585
.fs_hcnt = 0x48,
8686
.ss_lcnt = 0x01fb,
8787
.fs_lcnt = 0xa0,
88-
.sda_hold = 0x9,
88+
.sda_hold_time = 0x9,
8989
};
9090

9191
/* NAVI-AMD HCNT/LCNT/SDA hold time */
9292
static struct dw_scl_sda_cfg navi_amd_config = {
9393
.ss_hcnt = 0x1ae,
9494
.ss_lcnt = 0x23a,
95-
.sda_hold = 0x9,
95+
.sda_hold_time = 0x9,
9696
};
9797

9898
static u32 mfld_get_clk_rate_khz(struct dw_i2c_dev *dev)
@@ -264,7 +264,7 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev,
264264
dev->fs_hcnt = cfg->fs_hcnt;
265265
dev->ss_lcnt = cfg->ss_lcnt;
266266
dev->fs_lcnt = cfg->fs_lcnt;
267-
dev->sda_hold_time = cfg->sda_hold;
267+
dev->sda_hold_time = cfg->sda_hold_time;
268268
}
269269

270270
adap = &dev->adapter;

0 commit comments

Comments
 (0)