leds: is31fl32xx: define complete i2c_device_id table
authorH. Nikolaus Schaller <hns@goldelico.com>
Mon, 18 Jul 2016 17:03:31 +0000 (19:03 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 19 Jul 2016 11:58:42 +0000 (13:58 +0200)
Otherwise the driver module will not be automatically probed.

Fixes: 9d7cffaf99f5 ("leds: Add driver for the ISSI IS31FL32xx family of LED controllers")
Fixes: e0442d7def8f ("leds: Add SN3218 and SN3216 support to the IS31FL32XX driver")
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Tested-by: David Rivshin <drivshin@allworx.com>
Acked-by: David Rivshin <drivshin@allworx.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-is31fl32xx.c

index a53b71e7a50dbe978a8575088c56556ff016866e..478844c5cead1c707caa1eabb2ed7165e2c9e679 100644 (file)
@@ -482,10 +482,16 @@ static int is31fl32xx_remove(struct i2c_client *client)
 }
 
 /*
- * i2c-core requires that id_table be non-NULL, even though
- * it is not used for DeviceTree based instantiation.
+ * i2c-core (and modalias) requires that id_table be properly filled,
+ * even though it is not used for DeviceTree based instantiation.
  */
 static const struct i2c_device_id is31fl32xx_id[] = {
+       { "is31fl3236" },
+       { "is31fl3235" },
+       { "is31fl3218" },
+       { "sn3218" },
+       { "is31fl3216" },
+       { "sn3216" },
        {},
 };