From: Tony Lindgren Date: Mon, 12 May 2008 22:19:43 +0000 (-0700) Subject: I2C: Fix lm8323 by adding support for id_table X-Git-Tag: v2.6.26-omap1~123^2~115 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a59e04f09caf72992577775c89849a821f839858;p=linux-2.6-omap-h63xx.git I2C: Fix lm8323 by adding support for id_table Fix lm8323 by adding support for id_table Signed-off-by: Tony Lindgren --- diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index c9ede1067a5..d345a3addd7 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c @@ -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) {