Commit 5706c01f authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller Committed by Jacek Anaszewski

leds: is31fl32xx: define complete i2c_device_id table

Otherwise the driver module will not be automatically probed.

Fixes: 9d7cffaf ("leds: Add driver for the ISSI IS31FL32xx family of LED controllers")
Fixes: e0442d7d ("leds: Add SN3218 and SN3216 support to the IS31FL32XX driver")
Signed-off-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Tested-by: default avatarDavid Rivshin <drivshin@allworx.com>
Acked-by: default avatarDavid Rivshin <drivshin@allworx.com>
Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
parent 1d991b71
......@@ -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" },
{},
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment