From: Felipe Balbi Date: Tue, 13 May 2008 12:22:08 +0000 (+0300) Subject: I2C: LP5521: Add i2c_device_id X-Git-Tag: v2.6.26-omap1~123^2~111 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5744c1ebdd713c68fc3f1a93942d2baa8d139e79;p=linux-2.6-omap-h63xx.git I2C: LP5521: Add i2c_device_id Add i2c_device_id to lp5521 driver. Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- 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,