mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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: Lee Jones <[email protected]>
This commit is contained in:
parent
a259f3896a
commit
ec8bd56699
2 changed files with 3 additions and 4 deletions
|
|
@ -251,10 +251,9 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
|
|||
if (!match)
|
||||
return -EINVAL;
|
||||
|
||||
max77686->type = (int)match->data;
|
||||
} else {
|
||||
max77686->type = (unsigned long)match->data;
|
||||
} else
|
||||
max77686->type = id->driver_data;
|
||||
}
|
||||
|
||||
i2c_set_clientdata(i2c, max77686);
|
||||
max77686->dev = &i2c->dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue