i2c/writing-clients: Fix foo_driver.id_table
authorVikram Narayanan <vikram186@gmail.com>
Tue, 24 May 2011 18:58:48 +0000 (20:58 +0200)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:21:04 +0000 (12:21 -0500)
BugLink: http://bugs.launchpad.net/bugs/793702

commit 3116c86033079a1d4d4e84c40028f96b614843b8 upstream.

The i2c_device_id structure variable's name is not used in the
i2c_driver structure.

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

Documentation/i2c/writing-clients

index 5ebf5af..5aa5337 100644 (file)
@@ -38,7 +38,7 @@ static struct i2c_driver foo_driver = {
                .name   = "foo",
        },
 
-       .id_table       = foo_ids,
+       .id_table       = foo_idtable,
        .probe          = foo_probe,
        .remove         = foo_remove,
        /* if device autodetection is needed: */