Skip to content

Commit 4fe6d36

Browse files
goldelicorkhuangtao
authored andcommitted
UPSTREAM: leds: is31fl32xx: define complete i2c_device_id table
Otherwise the driver module will not be automatically probed. Change-Id: I14c8ee83ed97c3f08013c6aceb1f2c8889afcd94 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> Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com> (cherry picked from commit 5706c01fcfb313cef7aed6a283b43c5452cf8336)
1 parent b7afb9c commit 4fe6d36

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

drivers/leds/leds-is31fl32xx.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,16 @@ static int is31fl32xx_remove(struct i2c_client *client)
482482
}
483483

484484
/*
485-
* i2c-core requires that id_table be non-NULL, even though
486-
* it is not used for DeviceTree based instantiation.
485+
* i2c-core (and modalias) requires that id_table be properly filled,
486+
* even though it is not used for DeviceTree based instantiation.
487487
*/
488488
static const struct i2c_device_id is31fl32xx_id[] = {
489+
{ "is31fl3236" },
490+
{ "is31fl3235" },
491+
{ "is31fl3218" },
492+
{ "sn3218" },
493+
{ "is31fl3216" },
494+
{ "sn3216" },
489495
{},
490496
};
491497

0 commit comments

Comments
 (0)