mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
i2c: davinci: Use generic definitions for bus frequencies
Since we have generic definitions for bus frequencies, let's use them. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260618133429.3214475-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
parent
566eba5223
commit
20ec09394d
|
|
@ -117,8 +117,6 @@
|
|||
/* timeout for pm runtime autosuspend */
|
||||
#define DAVINCI_I2C_PM_TIMEOUT 1000 /* ms */
|
||||
|
||||
#define DAVINCI_I2C_DEFAULT_BUS_FREQ 100000
|
||||
|
||||
struct davinci_i2c_dev {
|
||||
struct device *dev;
|
||||
void __iomem *base;
|
||||
|
|
@ -760,7 +758,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
|
|||
|
||||
r = device_property_read_u32(&pdev->dev, "clock-frequency", &prop);
|
||||
if (r)
|
||||
prop = DAVINCI_I2C_DEFAULT_BUS_FREQ;
|
||||
prop = I2C_MAX_STANDARD_MODE_FREQ;
|
||||
|
||||
dev->bus_freq = prop / 1000;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user