]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/i2c/chips/tsl2563.c
I2C: TSL2563: Add i2c_device_id
[linux-2.6-omap-h63xx.git] / drivers / i2c / chips / tsl2563.c
index cf2e313d5ff518df8bd3cc6e4717b028827914a9..b39b65caf09074857e20da174589abaccc889267 100644 (file)
@@ -595,7 +595,8 @@ static void tsl2563_unregister_sysfs(struct i2c_client *client)
 /*--------------------------------------------------------------*/
 static struct i2c_driver tsl2563_i2c_driver;
 
-static int tsl2563_probe(struct i2c_client *client)
+static int tsl2563_probe(struct i2c_client *client,
+               const struct i2c_device_id *device_id)
 {
        struct tsl2563_chip *chip;
        int err = 0;
@@ -703,6 +704,12 @@ out:
        return ret;
 }
 
+static const struct i2c_device_id tsl2563_id[] = {
+       { DRIVER_NAME, 0 },
+       { },
+};
+MODULE_DEVICE_TABLE(i2c, tsl2563_id);
+
 static struct i2c_driver tsl2563_i2c_driver = {
        .driver = {
                .name    = DRIVER_NAME,