提交 ec8bd566 编写于 作者: L Lee Jones

mfd: max77686: Ensure device type IDs are architecture agnostic

Extinguishes:

../drivers/mfd/max77686.c: In function ‘max77686_i2c_probe’:
../drivers/mfd/max77686.c:254:20:
	warning: cast from pointer to integer of different size
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 a259f389
...@@ -251,10 +251,9 @@ static int max77686_i2c_probe(struct i2c_client *i2c, ...@@ -251,10 +251,9 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
if (!match) if (!match)
return -EINVAL; return -EINVAL;
max77686->type = (int)match->data; max77686->type = (unsigned long)match->data;
} else { } else
max77686->type = id->driver_data; max77686->type = id->driver_data;
}
i2c_set_clientdata(i2c, max77686); i2c_set_clientdata(i2c, max77686);
max77686->dev = &i2c->dev; max77686->dev = &i2c->dev;
......
...@@ -439,7 +439,7 @@ struct max77686_dev { ...@@ -439,7 +439,7 @@ struct max77686_dev {
struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */ struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */
struct i2c_client *rtc; /* slave addr 0x0c */ struct i2c_client *rtc; /* slave addr 0x0c */
int type; unsigned long type;
struct regmap *regmap; /* regmap for mfd */ struct regmap *regmap; /* regmap for mfd */
struct regmap *rtc_regmap; /* regmap for rtc */ struct regmap *rtc_regmap; /* regmap for rtc */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册