Add i2c_device_id to lp5521 driver.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
/*--------------------------------------------------------------*/
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;
int ret = 0;
{
struct lp5521_chip *chip;
int ret = 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,
static struct i2c_driver lp5521_driver = {
.driver = {
.name = LP5521_DRIVER_NAME,