mfd: Initial support for the WM5110
[deliverable/linux.git] / drivers / mfd / arizona-i2c.c
index 75fb110105e10a22f17945950440731c7cc3a049..570c4b438086c548d53a0ef7216aa73a0868de70 100644 (file)
@@ -30,9 +30,16 @@ static __devinit int arizona_i2c_probe(struct i2c_client *i2c,
        int ret;
 
        switch (id->driver_data) {
+#ifdef CONFIG_MFD_WM5102
        case WM5102:
                regmap_config = &wm5102_i2c_regmap;
                break;
+#endif
+#ifdef CONFIG_MFD_WM5110
+       case WM5110:
+               regmap_config = &wm5110_i2c_regmap;
+               break;
+#endif
        default:
                dev_err(&i2c->dev, "Unknown device type %ld\n",
                        id->driver_data);
@@ -67,6 +74,7 @@ static int __devexit arizona_i2c_remove(struct i2c_client *i2c)
 
 static const struct i2c_device_id arizona_i2c_id[] = {
        { "wm5102", WM5102 },
+       { "wm5110", WM5110 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, arizona_i2c_id);
This page took 0.466113 seconds and 5 git commands to generate.