aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-12-06 13:07:45 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-01-29 15:49:09 -0500
commitc12922338cb9d1f06cf0951ad3ee692f7d3d96f9 (patch)
tree2143fa38a6763d1e54c3f0c83d34120922a85140 /drivers/media/tuners
parent78dab40a51fc4370744ba38b5d8b9c3294c8c136 (diff)
[media] si2157: trivial ID table changes
- 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>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/si2157.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c
index 6174c8eaa8b4..211d500a74dd 100644
--- a/drivers/media/tuners/si2157.c
+++ b/drivers/media/tuners/si2157.c
@@ -383,12 +383,12 @@ static int si2157_remove(struct i2c_client *client)
383 return 0; 383 return 0;
384} 384}
385 385
386static const struct i2c_device_id si2157_id[] = { 386static const struct i2c_device_id si2157_id_table[] = {
387 {"si2157", 0}, 387 {"si2157", SI2157_CHIPTYPE_SI2157},
388 {"si2146", 1}, 388 {"si2146", SI2157_CHIPTYPE_SI2146},
389 {} 389 {}
390}; 390};
391MODULE_DEVICE_TABLE(i2c, si2157_id); 391MODULE_DEVICE_TABLE(i2c, si2157_id_table);
392 392
393static struct i2c_driver si2157_driver = { 393static struct i2c_driver si2157_driver = {
394 .driver = { 394 .driver = {
@@ -397,7 +397,7 @@ static struct i2c_driver si2157_driver = {
397 }, 397 },
398 .probe = si2157_probe, 398 .probe = si2157_probe,
399 .remove = si2157_remove, 399 .remove = si2157_remove,
400 .id_table = si2157_id, 400 .id_table = si2157_id_table,
401}; 401};
402 402
403module_i2c_driver(si2157_driver); 403module_i2c_driver(si2157_driver);