Skip to content

Commit 030f6a6

Browse files
pelwellpopcornmix
authored andcommitted
Revert "i2c: designware: Look for *CNT values in DT"
This reverts commit 78bb16b. Signed-off-by: Phil Elwell <[email protected]>
1 parent 16453c0 commit 030f6a6

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,9 @@ static int mscc_twi_set_sda_hold_time(struct dw_i2c_dev *dev)
132132
return 0;
133133
}
134134

135-
static void dw_i2c_read_of_cnt(struct device_node *np, const char *name, u16 *pval)
136-
{
137-
u32 val;
138-
139-
if (!of_property_read_u32(np, name, &val))
140-
*pval = (u16)val;
141-
}
142-
143135
static int dw_i2c_of_configure(struct platform_device *pdev)
144136
{
145137
struct dw_i2c_dev *dev = platform_get_drvdata(pdev);
146-
struct device_node *np = pdev->dev.of_node;
147138

148139
switch (dev->flags & MODEL_MASK) {
149140
case MODEL_MSCC_OCELOT:
@@ -155,15 +146,6 @@ static int dw_i2c_of_configure(struct platform_device *pdev)
155146
break;
156147
}
157148

158-
dw_i2c_read_of_cnt(np, "snps,ss_hcnt", &dev->ss_hcnt);
159-
dw_i2c_read_of_cnt(np, "snps,ss_lcnt", &dev->ss_lcnt);
160-
dw_i2c_read_of_cnt(np, "snps,fs_hcnt", &dev->fs_hcnt);
161-
dw_i2c_read_of_cnt(np, "snps,fs_lcnt", &dev->fs_lcnt);
162-
dw_i2c_read_of_cnt(np, "snps,fp_hcnt", &dev->fp_hcnt);
163-
dw_i2c_read_of_cnt(np, "snps,fp_lcnt", &dev->fp_lcnt);
164-
dw_i2c_read_of_cnt(np, "snps,hs_hcnt", &dev->hs_hcnt);
165-
dw_i2c_read_of_cnt(np, "snps,hs_lcnt", &dev->hs_lcnt);
166-
167149
return 0;
168150
}
169151

0 commit comments

Comments
 (0)