mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
i2c: pnx: 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: Vladimir Zapolskiy <vz@mleia.com> Link: https://lore.kernel.org/r/20260618130948.3199768-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
parent
20c3dcb1f4
commit
566eba5223
|
|
@ -24,7 +24,6 @@
|
|||
#include <linux/of.h>
|
||||
|
||||
#define I2C_PNX_TIMEOUT_DEFAULT 10 /* msec */
|
||||
#define I2C_PNX_SPEED_KHZ_DEFAULT 100
|
||||
#define I2C_PNX_REGION_SIZE 0x100
|
||||
|
||||
struct i2c_pnx_mif {
|
||||
|
|
@ -606,12 +605,12 @@ static DEFINE_SIMPLE_DEV_PM_OPS(i2c_pnx_pm,
|
|||
|
||||
static int i2c_pnx_probe(struct platform_device *pdev)
|
||||
{
|
||||
u32 speed = I2C_MAX_STANDARD_MODE_FREQ;
|
||||
unsigned long tmp;
|
||||
int ret = 0;
|
||||
struct i2c_pnx_algo_data *alg_data;
|
||||
unsigned long freq;
|
||||
struct resource *res;
|
||||
u32 speed = I2C_PNX_SPEED_KHZ_DEFAULT * 1000;
|
||||
|
||||
alg_data = devm_kzalloc(&pdev->dev, sizeof(*alg_data), GFP_KERNEL);
|
||||
if (!alg_data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user