]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] si2157: trivial ID table changes
authorAntti Palosaari <crope@iki.fi>
Sat, 6 Dec 2014 18:07:45 +0000 (15:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 29 Jan 2015 20:49:09 +0000 (18:49 -0200)
- Rename ID table.
- Remove magic numbers from ID table driver data field.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/tuners/si2157.c

index 6174c8eaa8b40e5c901cd5948368ce0871ed1f0c..211d500a74dd2d7f5c0101d97fecdb40b6a690ff 100644 (file)
@@ -383,12 +383,12 @@ static int si2157_remove(struct i2c_client *client)
        return 0;
 }
 
-static const struct i2c_device_id si2157_id[] = {
-       {"si2157", 0},
-       {"si2146", 1},
+static const struct i2c_device_id si2157_id_table[] = {
+       {"si2157", SI2157_CHIPTYPE_SI2157},
+       {"si2146", SI2157_CHIPTYPE_SI2146},
        {}
 };
-MODULE_DEVICE_TABLE(i2c, si2157_id);
+MODULE_DEVICE_TABLE(i2c, si2157_id_table);
 
 static struct i2c_driver si2157_driver = {
        .driver = {
@@ -397,7 +397,7 @@ static struct i2c_driver si2157_driver = {
        },
        .probe          = si2157_probe,
        .remove         = si2157_remove,
-       .id_table       = si2157_id,
+       .id_table       = si2157_id_table,
 };
 
 module_i2c_driver(si2157_driver);