}
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;
return 0;
}
+static const struct i2c_device_id lm8323_id[] = {
+ { DRIVER_NAME, 0 },
+ { }
+};
+
static struct i2c_driver lm8323_i2c_driver = {
.driver = {
.name = DRIVER_NAME,
.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)
{