Commit 27d7704e authored by Kim, Milo's avatar Kim, Milo Committed by Bryan Wu

leds-lp5523: add new device id for LP55231

To support LP55231 device, the device id is added. Additionally,
the i2c driver name is changed from lp5523 to lp5523x.
Signed-off-by: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent ca705321
...@@ -104,6 +104,11 @@ ...@@ -104,6 +104,11 @@
#define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led))) #define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led)))
#define SHIFT_MASK(id) (((id) - 1) * 2) #define SHIFT_MASK(id) (((id) - 1) * 2)
enum lp5523_chip_id {
LP5523,
LP55231,
};
struct lp5523_engine { struct lp5523_engine {
int id; int id;
u8 mode; u8 mode;
...@@ -1005,7 +1010,8 @@ static int lp5523_remove(struct i2c_client *client) ...@@ -1005,7 +1010,8 @@ static int lp5523_remove(struct i2c_client *client)
} }
static const struct i2c_device_id lp5523_id[] = { static const struct i2c_device_id lp5523_id[] = {
{ "lp5523", 0 }, { "lp5523", LP5523 },
{ "lp55231", LP55231 },
{ } { }
}; };
...@@ -1013,7 +1019,7 @@ MODULE_DEVICE_TABLE(i2c, lp5523_id); ...@@ -1013,7 +1019,7 @@ MODULE_DEVICE_TABLE(i2c, lp5523_id);
static struct i2c_driver lp5523_driver = { static struct i2c_driver lp5523_driver = {
.driver = { .driver = {
.name = "lp5523", .name = "lp5523x",
}, },
.probe = lp5523_probe, .probe = lp5523_probe,
.remove = lp5523_remove, .remove = lp5523_remove,
......
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