From 5744c1ebdd713c68fc3f1a93942d2baa8d139e79 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Tue, 13 May 2008 15:22:08 +0300 Subject: [PATCH] I2C: LP5521: Add i2c_device_id Add i2c_device_id to lp5521 driver. Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- drivers/i2c/chips/lp5521.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/chips/lp5521.c b/drivers/i2c/chips/lp5521.c index d1803a95b20..4d869f99bfb 100644 --- a/drivers/i2c/chips/lp5521.c +++ b/drivers/i2c/chips/lp5521.c @@ -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, -- 2.41.1