]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: LP5521: Add i2c_device_id
authorFelipe Balbi <felipe.balbi@nokia.com>
Tue, 13 May 2008 12:22:08 +0000 (15:22 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 14 May 2008 22:26:00 +0000 (15:26 -0700)
Add i2c_device_id to lp5521 driver.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/lp5521.c

index d1803a95b20a0fc7c3f112704dc34bfb4afae99a..4d869f99bfb18a83eb876d2e6622f6d70de9f6f0 100644 (file)
@@ -503,7 +503,8 @@ static int lp5521_set_mode(struct lp5521_chip *chip, char *mode)
 /*--------------------------------------------------------------*/
 static struct i2c_driver lp5521_driver;
 
-static int lp5521_probe(struct i2c_client *client)
+static int lp5521_probe(struct i2c_client *client,
+               const struct i2c_device_id *id)
 {
        struct lp5521_chip *chip;
        int ret = 0;
@@ -551,6 +552,12 @@ static int lp5521_remove(struct i2c_client *client)
        return 0;
 }
 
+static const struct i2c_device_id lp5521_id[] = {
+       { LP5521_DRIVER_NAME, 0},
+       { },
+};
+MODULE_DEVICE_TABLE(i2c, lp5521_id);
+
 static struct i2c_driver lp5521_driver = {
        .driver = {
                .name   = LP5521_DRIVER_NAME,