summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-09-04 03:06:18 -0400
committerBryan Wu <bryan.wu@canonical.com>2012-09-11 06:32:42 -0400
commit27d7704e5ebf0bc0cba86508023dd484639a48de (patch)
tree6a85b7552157f9231b958739cd0c47b702425627 /drivers/leds
parentca7053216833d6b9cd3faaa0dfd2261ce3b9dffc (diff)
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: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-lp5523.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c
index 80d37929044f..e69e72a11a97 100644
--- a/drivers/leds/leds-lp5523.c
+++ b/drivers/leds/leds-lp5523.c
@@ -104,6 +104,11 @@
104#define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led))) 104#define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led)))
105#define SHIFT_MASK(id) (((id) - 1) * 2) 105#define SHIFT_MASK(id) (((id) - 1) * 2)
106 106
107enum lp5523_chip_id {
108 LP5523,
109 LP55231,
110};
111
107struct lp5523_engine { 112struct lp5523_engine {
108 int id; 113 int id;
109 u8 mode; 114 u8 mode;
@@ -1005,7 +1010,8 @@ static int lp5523_remove(struct i2c_client *client)
1005} 1010}
1006 1011
1007static const struct i2c_device_id lp5523_id[] = { 1012static const struct i2c_device_id lp5523_id[] = {
1008 { "lp5523", 0 }, 1013 { "lp5523", LP5523 },
1014 { "lp55231", LP55231 },
1009 { } 1015 { }
1010}; 1016};
1011 1017
@@ -1013,7 +1019,7 @@ MODULE_DEVICE_TABLE(i2c, lp5523_id);
1013 1019
1014static struct i2c_driver lp5523_driver = { 1020static struct i2c_driver lp5523_driver = {
1015 .driver = { 1021 .driver = {
1016 .name = "lp5523", 1022 .name = "lp5523x",
1017 }, 1023 },
1018 .probe = lp5523_probe, 1024 .probe = lp5523_probe,
1019 .remove = lp5523_remove, 1025 .remove = lp5523_remove,