Commit 5744c1eb authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren

I2C: LP5521: Add i2c_device_id

Add i2c_device_id to lp5521 driver.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 11f26b68
...@@ -503,7 +503,8 @@ static int lp5521_set_mode(struct lp5521_chip *chip, char *mode) ...@@ -503,7 +503,8 @@ static int lp5521_set_mode(struct lp5521_chip *chip, char *mode)
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
static struct i2c_driver lp5521_driver; 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; struct lp5521_chip *chip;
int ret = 0; int ret = 0;
...@@ -551,6 +552,12 @@ static int lp5521_remove(struct i2c_client *client) ...@@ -551,6 +552,12 @@ static int lp5521_remove(struct i2c_client *client)
return 0; 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 = { static struct i2c_driver lp5521_driver = {
.driver = { .driver = {
.name = LP5521_DRIVER_NAME, .name = LP5521_DRIVER_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment