Commit a59e04f0 authored by Tony Lindgren's avatar Tony Lindgren

I2C: Fix lm8323 by adding support for id_table

Fix lm8323 by adding support for id_table
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c0a1549a
......@@ -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)
{
......
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