From a59e04f09caf72992577775c89849a821f839858 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 12 May 2008 15:19:43 -0700 Subject: [PATCH] I2C: Fix lm8323 by adding support for id_table Fix lm8323 by adding support for id_table Signed-off-by: Tony Lindgren --- drivers/input/keyboard/lm8323.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.41.1