]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
leds-lp5523: add new device id for LP55231
authorKim, Milo <Milo.Kim@ti.com>
Tue, 4 Sep 2012 07:06:18 +0000 (15:06 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 11 Sep 2012 10:32:42 +0000 (18:32 +0800)
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>
drivers/leds/leds-lp5523.c

index 80d37929044f018f15bc260a77e68f9deddbfdbc..e69e72a11a979fad04daec1207e4cd704ee984ad 100644 (file)
 #define LED_ACTIVE(mux, led)           (!!(mux & (0x0001 << led)))
 #define SHIFT_MASK(id)                 (((id) - 1) * 2)
 
+enum lp5523_chip_id {
+       LP5523,
+       LP55231,
+};
+
 struct lp5523_engine {
        int             id;
        u8              mode;
@@ -1005,7 +1010,8 @@ static int lp5523_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lp5523_id[] = {
-       { "lp5523", 0 },
+       { "lp5523",  LP5523 },
+       { "lp55231", LP55231 },
        { }
 };
 
@@ -1013,7 +1019,7 @@ MODULE_DEVICE_TABLE(i2c, lp5523_id);
 
 static struct i2c_driver lp5523_driver = {
        .driver = {
-               .name   = "lp5523",
+               .name   = "lp5523x",
        },
        .probe          = lp5523_probe,
        .remove         = lp5523_remove,