]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: Fix lm8323 by adding support for id_table
authorTony Lindgren <tony@atomide.com>
Mon, 12 May 2008 22:19:43 +0000 (15:19 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 12 May 2008 22:35:46 +0000 (15:35 -0700)
Fix lm8323 by adding support for id_table

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/lm8323.c

index c9ede1067a51dbe85b1f4538c8c32d50d87b0bb0..d345a3addd71b38fcc13f13157cc9813e25efef0 100644 (file)
@@ -671,7 +671,8 @@ static ssize_t lm8323_set_disable(struct device *dev,
 }
 static DEVICE_ATTR(disable_kp, 0644, lm8323_show_disable, lm8323_set_disable);
 
-static int lm8323_probe(struct i2c_client *client)
+static int lm8323_probe(struct i2c_client *client,
+                                       const struct i2c_device_id *id)
 {
        struct input_dev *idev;
        struct lm8323_chip *lm;
@@ -883,6 +884,11 @@ static int lm8323_resume(struct i2c_client *client)
        return 0;
 }
 
+static const struct i2c_device_id lm8323_id[] = {
+       { DRIVER_NAME, 0 },
+       { }
+};
+
 static struct i2c_driver lm8323_i2c_driver = {
        .driver = {
                .name    = DRIVER_NAME,
@@ -891,7 +897,9 @@ static struct i2c_driver lm8323_i2c_driver = {
        .remove         = __exit_p(lm8323_remove),
        .suspend        = lm8323_suspend,
        .resume         = lm8323_resume,
+       .id_table       = lm8323_id,
 };
+MODULE_DEVICE_TABLE(i2c, lm8323_id);
 
 static int __init lm8323_init(void)
 {