aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tvaudio.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-07-10 10:23:37 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:18:38 -0400
commit5a367dfb739831d54caf226ce0bc4c75ef264d8d (patch)
tree9188b1cc3ade47a9b8c7c3c3785c69a5b7ca9c1c /drivers/media/video/tvaudio.c
parentbe99af6679174e5d0e9f36fc8c18318a8ce34bca (diff)
V4L/DVB (8246): tvaudio: Stop I2C driver ID abuse
The tvaudio driver is using "official" I2C device IDs for internal purpose. There must be some historical reason behind this but anyway, it shouldn't do that. As the stored values are never used, the easiest way to fix the problem is simply to remove them altogether. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tvaudio.c')
-rw-r--r--drivers/media/video/tvaudio.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index c77914d99d15..463680b13289 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -69,7 +69,6 @@ typedef struct AUDIOCMD {
69/* chip description */ 69/* chip description */
70struct CHIPDESC { 70struct CHIPDESC {
71 char *name; /* chip name */ 71 char *name; /* chip name */
72 int id; /* ID */
73 int addr_lo, addr_hi; /* i2c address range */ 72 int addr_lo, addr_hi; /* i2c address range */
74 int registers; /* # of registers */ 73 int registers; /* # of registers */
75 74
@@ -1256,7 +1255,6 @@ module_param(ta8874z, int, 0444);
1256static struct CHIPDESC chiplist[] = { 1255static struct CHIPDESC chiplist[] = {
1257 { 1256 {
1258 .name = "tda9840", 1257 .name = "tda9840",
1259 .id = I2C_DRIVERID_TDA9840,
1260 .insmodopt = &tda9840, 1258 .insmodopt = &tda9840,
1261 .addr_lo = I2C_ADDR_TDA9840 >> 1, 1259 .addr_lo = I2C_ADDR_TDA9840 >> 1,
1262 .addr_hi = I2C_ADDR_TDA9840 >> 1, 1260 .addr_hi = I2C_ADDR_TDA9840 >> 1,
@@ -1272,7 +1270,6 @@ static struct CHIPDESC chiplist[] = {
1272 }, 1270 },
1273 { 1271 {
1274 .name = "tda9873h", 1272 .name = "tda9873h",
1275 .id = I2C_DRIVERID_TDA9873,
1276 .checkit = tda9873_checkit, 1273 .checkit = tda9873_checkit,
1277 .insmodopt = &tda9873, 1274 .insmodopt = &tda9873,
1278 .addr_lo = I2C_ADDR_TDA985x_L >> 1, 1275 .addr_lo = I2C_ADDR_TDA985x_L >> 1,
@@ -1293,7 +1290,6 @@ static struct CHIPDESC chiplist[] = {
1293 }, 1290 },
1294 { 1291 {
1295 .name = "tda9874h/a", 1292 .name = "tda9874h/a",
1296 .id = I2C_DRIVERID_TDA9874,
1297 .checkit = tda9874a_checkit, 1293 .checkit = tda9874a_checkit,
1298 .initialize = tda9874a_initialize, 1294 .initialize = tda9874a_initialize,
1299 .insmodopt = &tda9874a, 1295 .insmodopt = &tda9874a,
@@ -1306,7 +1302,6 @@ static struct CHIPDESC chiplist[] = {
1306 }, 1302 },
1307 { 1303 {
1308 .name = "tda9850", 1304 .name = "tda9850",
1309 .id = I2C_DRIVERID_TDA9850,
1310 .insmodopt = &tda9850, 1305 .insmodopt = &tda9850,
1311 .addr_lo = I2C_ADDR_TDA985x_L >> 1, 1306 .addr_lo = I2C_ADDR_TDA985x_L >> 1,
1312 .addr_hi = I2C_ADDR_TDA985x_H >> 1, 1307 .addr_hi = I2C_ADDR_TDA985x_H >> 1,
@@ -1319,7 +1314,6 @@ static struct CHIPDESC chiplist[] = {
1319 }, 1314 },
1320 { 1315 {
1321 .name = "tda9855", 1316 .name = "tda9855",
1322 .id = I2C_DRIVERID_TDA9855,
1323 .insmodopt = &tda9855, 1317 .insmodopt = &tda9855,
1324 .addr_lo = I2C_ADDR_TDA985x_L >> 1, 1318 .addr_lo = I2C_ADDR_TDA985x_L >> 1,
1325 .addr_hi = I2C_ADDR_TDA985x_H >> 1, 1319 .addr_hi = I2C_ADDR_TDA985x_H >> 1,
@@ -1344,7 +1338,6 @@ static struct CHIPDESC chiplist[] = {
1344 }, 1338 },
1345 { 1339 {
1346 .name = "tea6300", 1340 .name = "tea6300",
1347 .id = I2C_DRIVERID_TEA6300,
1348 .insmodopt = &tea6300, 1341 .insmodopt = &tea6300,
1349 .addr_lo = I2C_ADDR_TEA6300 >> 1, 1342 .addr_lo = I2C_ADDR_TEA6300 >> 1,
1350 .addr_hi = I2C_ADDR_TEA6300 >> 1, 1343 .addr_hi = I2C_ADDR_TEA6300 >> 1,
@@ -1365,7 +1358,6 @@ static struct CHIPDESC chiplist[] = {
1365 }, 1358 },
1366 { 1359 {
1367 .name = "tea6320", 1360 .name = "tea6320",
1368 .id = I2C_DRIVERID_TEA6300,
1369 .initialize = tea6320_initialize, 1361 .initialize = tea6320_initialize,
1370 .insmodopt = &tea6320, 1362 .insmodopt = &tea6320,
1371 .addr_lo = I2C_ADDR_TEA6300 >> 1, 1363 .addr_lo = I2C_ADDR_TEA6300 >> 1,
@@ -1387,7 +1379,6 @@ static struct CHIPDESC chiplist[] = {
1387 }, 1379 },
1388 { 1380 {
1389 .name = "tea6420", 1381 .name = "tea6420",
1390 .id = I2C_DRIVERID_TEA6420,
1391 .insmodopt = &tea6420, 1382 .insmodopt = &tea6420,
1392 .addr_lo = I2C_ADDR_TEA6420 >> 1, 1383 .addr_lo = I2C_ADDR_TEA6420 >> 1,
1393 .addr_hi = I2C_ADDR_TEA6420 >> 1, 1384 .addr_hi = I2C_ADDR_TEA6420 >> 1,
@@ -1400,7 +1391,6 @@ static struct CHIPDESC chiplist[] = {
1400 }, 1391 },
1401 { 1392 {
1402 .name = "tda8425", 1393 .name = "tda8425",
1403 .id = I2C_DRIVERID_TDA8425,
1404 .insmodopt = &tda8425, 1394 .insmodopt = &tda8425,
1405 .addr_lo = I2C_ADDR_TDA8425 >> 1, 1395 .addr_lo = I2C_ADDR_TDA8425 >> 1,
1406 .addr_hi = I2C_ADDR_TDA8425 >> 1, 1396 .addr_hi = I2C_ADDR_TDA8425 >> 1,
@@ -1424,7 +1414,6 @@ static struct CHIPDESC chiplist[] = {
1424 }, 1414 },
1425 { 1415 {
1426 .name = "pic16c54 (PV951)", 1416 .name = "pic16c54 (PV951)",
1427 .id = I2C_DRIVERID_PIC16C54_PV9,
1428 .insmodopt = &pic16c54, 1417 .insmodopt = &pic16c54,
1429 .addr_lo = I2C_ADDR_PIC16C54 >> 1, 1418 .addr_lo = I2C_ADDR_PIC16C54 >> 1,
1430 .addr_hi = I2C_ADDR_PIC16C54>> 1, 1419 .addr_hi = I2C_ADDR_PIC16C54>> 1,
@@ -1440,8 +1429,6 @@ static struct CHIPDESC chiplist[] = {
1440 }, 1429 },
1441 { 1430 {
1442 .name = "ta8874z", 1431 .name = "ta8874z",
1443 .id = -1,
1444 /*.id = I2C_DRIVERID_TA8874Z, */
1445 .checkit = ta8874z_checkit, 1432 .checkit = ta8874z_checkit,
1446 .insmodopt = &ta8874z, 1433 .insmodopt = &ta8874z,
1447 .addr_lo = I2C_ADDR_TDA9840 >> 1, 1434 .addr_lo = I2C_ADDR_TDA9840 >> 1,