mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mfd: Support for ICs compliant with max8998
Signed-off-by: Lukasz Majewski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Acked-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
9d92492fb7
commit
509bd4764c
2 changed files with 14 additions and 2 deletions
|
|
@ -133,6 +133,7 @@ static int max8998_i2c_probe(struct i2c_client *i2c,
|
|||
max8998->dev = &i2c->dev;
|
||||
max8998->i2c = i2c;
|
||||
max8998->irq = i2c->irq;
|
||||
max8998->type = id->driver_data;
|
||||
if (pdata) {
|
||||
max8998->ono = pdata->ono;
|
||||
max8998->irq_base = pdata->irq_base;
|
||||
|
|
@ -169,8 +170,8 @@ static int max8998_i2c_remove(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id max8998_i2c_id[] = {
|
||||
{ "max8998", 0 },
|
||||
{ "lp3974", 0 },
|
||||
{ "max8998", TYPE_MAX8998 },
|
||||
{ "lp3974", TYPE_LP3974},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, max8998_i2c_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue