mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-04 15:50:07 +07:00
leds: lp5562: Properly setup of_device_id table
Don't mix of_device_id entry in i2c_device_id table. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
This commit is contained in:
parent
33c88b67f3
commit
28720cff9f
@ -587,14 +587,23 @@ static int lp5562_remove(struct i2c_client *client)
|
|||||||
|
|
||||||
static const struct i2c_device_id lp5562_id[] = {
|
static const struct i2c_device_id lp5562_id[] = {
|
||||||
{ "lp5562", 0 },
|
{ "lp5562", 0 },
|
||||||
{ "ti,lp5562", 0 }, /* OF compatible */
|
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, lp5562_id);
|
MODULE_DEVICE_TABLE(i2c, lp5562_id);
|
||||||
|
|
||||||
|
#ifdef CONFIG_OF
|
||||||
|
static const struct of_device_id of_lp5562_leds_match[] = {
|
||||||
|
{ .compatible = "ti,lp5562", },
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
|
||||||
|
MODULE_DEVICE_TABLE(of, of_lp5562_leds_match);
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct i2c_driver lp5562_driver = {
|
static struct i2c_driver lp5562_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "lp5562",
|
.name = "lp5562",
|
||||||
|
.of_match_table = of_match_ptr(of_lp5562_leds_match),
|
||||||
},
|
},
|
||||||
.probe = lp5562_probe,
|
.probe = lp5562_probe,
|
||||||
.remove = lp5562_remove,
|
.remove = lp5562_remove,
|
||||||
|
Loading…
Reference in New Issue
Block a user