aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-13 11:14:15 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-14 11:24:44 -0500
commitaf1a9951fc5c89518c25c4d9f2c4b391b2e72b83 (patch)
treea748c4057b32db2a36b24730883c5a63e16bf1d4
parent04e6f99025475a8cf2ccf2e39ffa48a6194a3b47 (diff)
V4L/DVB (9616): tvaudio: cleanup - group all callbacks together
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/tvaudio.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index cb8bf6d6f3d5..1fa481ca0861 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -1260,6 +1260,7 @@ static struct CHIPDESC chiplist[] = {
1260 .addr_hi = I2C_ADDR_TDA9840 >> 1, 1260 .addr_hi = I2C_ADDR_TDA9840 >> 1,
1261 .registers = 5, 1261 .registers = 5,
1262 1262
1263 /* callbacks */
1263 .checkit = tda9840_checkit, 1264 .checkit = tda9840_checkit,
1264 .getmode = tda9840_getmode, 1265 .getmode = tda9840_getmode,
1265 .setmode = tda9840_setmode, 1266 .setmode = tda9840_setmode,
@@ -1270,13 +1271,14 @@ static struct CHIPDESC chiplist[] = {
1270 }, 1271 },
1271 { 1272 {
1272 .name = "tda9873h", 1273 .name = "tda9873h",
1273 .checkit = tda9873_checkit,
1274 .insmodopt = &tda9873, 1274 .insmodopt = &tda9873,
1275 .addr_lo = I2C_ADDR_TDA985x_L >> 1, 1275 .addr_lo = I2C_ADDR_TDA985x_L >> 1,
1276 .addr_hi = I2C_ADDR_TDA985x_H >> 1, 1276 .addr_hi = I2C_ADDR_TDA985x_H >> 1,
1277 .registers = 3, 1277 .registers = 3,
1278 .flags = CHIP_HAS_INPUTSEL, 1278 .flags = CHIP_HAS_INPUTSEL,
1279 1279
1280 /* callbacks */
1281 .checkit = tda9873_checkit,
1280 .getmode = tda9873_getmode, 1282 .getmode = tda9873_getmode,
1281 .setmode = tda9873_setmode, 1283 .setmode = tda9873_setmode,
1282 .checkmode = generic_checkmode, 1284 .checkmode = generic_checkmode,
@@ -1290,12 +1292,13 @@ static struct CHIPDESC chiplist[] = {
1290 }, 1292 },
1291 { 1293 {
1292 .name = "tda9874h/a", 1294 .name = "tda9874h/a",
1293 .checkit = tda9874a_checkit,
1294 .initialize = tda9874a_initialize,
1295 .insmodopt = &tda9874a, 1295 .insmodopt = &tda9874a,
1296 .addr_lo = I2C_ADDR_TDA9874 >> 1, 1296 .addr_lo = I2C_ADDR_TDA9874 >> 1,
1297 .addr_hi = I2C_ADDR_TDA9874 >> 1, 1297 .addr_hi = I2C_ADDR_TDA9874 >> 1,
1298 1298
1299 /* callbacks */
1300 .initialize = tda9874a_initialize,
1301 .checkit = tda9874a_checkit,
1299 .getmode = tda9874a_getmode, 1302 .getmode = tda9874a_getmode,
1300 .setmode = tda9874a_setmode, 1303 .setmode = tda9874a_setmode,
1301 .checkmode = generic_checkmode, 1304 .checkmode = generic_checkmode,
@@ -1324,10 +1327,11 @@ static struct CHIPDESC chiplist[] = {
1324 .rightreg = TDA9855_VR, 1327 .rightreg = TDA9855_VR,
1325 .bassreg = TDA9855_BA, 1328 .bassreg = TDA9855_BA,
1326 .treblereg = TDA9855_TR, 1329 .treblereg = TDA9855_TR,
1330
1331 /* callbacks */
1327 .volfunc = tda9855_volume, 1332 .volfunc = tda9855_volume,
1328 .bassfunc = tda9855_bass, 1333 .bassfunc = tda9855_bass,
1329 .treblefunc = tda9855_treble, 1334 .treblefunc = tda9855_treble,
1330
1331 .getmode = tda985x_getmode, 1335 .getmode = tda985x_getmode,
1332 .setmode = tda985x_setmode, 1336 .setmode = tda985x_setmode,
1333 1337
@@ -1348,6 +1352,8 @@ static struct CHIPDESC chiplist[] = {
1348 .rightreg = TEA6300_VL, 1352 .rightreg = TEA6300_VL,
1349 .bassreg = TEA6300_BA, 1353 .bassreg = TEA6300_BA,
1350 .treblereg = TEA6300_TR, 1354 .treblereg = TEA6300_TR,
1355
1356 /* callbacks */
1351 .volfunc = tea6300_shift10, 1357 .volfunc = tea6300_shift10,
1352 .bassfunc = tea6300_shift12, 1358 .bassfunc = tea6300_shift12,
1353 .treblefunc = tea6300_shift12, 1359 .treblefunc = tea6300_shift12,
@@ -1358,7 +1364,6 @@ static struct CHIPDESC chiplist[] = {
1358 }, 1364 },
1359 { 1365 {
1360 .name = "tea6320", 1366 .name = "tea6320",
1361 .initialize = tea6320_initialize,
1362 .insmodopt = &tea6320, 1367 .insmodopt = &tea6320,
1363 .addr_lo = I2C_ADDR_TEA6300 >> 1, 1368 .addr_lo = I2C_ADDR_TEA6300 >> 1,
1364 .addr_hi = I2C_ADDR_TEA6300 >> 1, 1369 .addr_hi = I2C_ADDR_TEA6300 >> 1,
@@ -1369,6 +1374,9 @@ static struct CHIPDESC chiplist[] = {
1369 .rightreg = TEA6320_V, 1374 .rightreg = TEA6320_V,
1370 .bassreg = TEA6320_BA, 1375 .bassreg = TEA6320_BA,
1371 .treblereg = TEA6320_TR, 1376 .treblereg = TEA6320_TR,
1377
1378 /* callbacks */
1379 .initialize = tea6320_initialize,
1372 .volfunc = tea6320_volume, 1380 .volfunc = tea6320_volume,
1373 .bassfunc = tea6320_shift11, 1381 .bassfunc = tea6320_shift11,
1374 .treblefunc = tea6320_shift11, 1382 .treblefunc = tea6320_shift11,
@@ -1401,16 +1409,18 @@ static struct CHIPDESC chiplist[] = {
1401 .rightreg = TDA8425_VR, 1409 .rightreg = TDA8425_VR,
1402 .bassreg = TDA8425_BA, 1410 .bassreg = TDA8425_BA,
1403 .treblereg = TDA8425_TR, 1411 .treblereg = TDA8425_TR,
1412
1413 /* callbacks */
1414 .initialize = tda8425_initialize,
1404 .volfunc = tda8425_shift10, 1415 .volfunc = tda8425_shift10,
1405 .bassfunc = tda8425_shift12, 1416 .bassfunc = tda8425_shift12,
1406 .treblefunc = tda8425_shift12, 1417 .treblefunc = tda8425_shift12,
1418 .setmode = tda8425_setmode,
1407 1419
1408 .inputreg = TDA8425_S1, 1420 .inputreg = TDA8425_S1,
1409 .inputmap = { TDA8425_S1_CH1, TDA8425_S1_CH1, TDA8425_S1_CH1 }, 1421 .inputmap = { TDA8425_S1_CH1, TDA8425_S1_CH1, TDA8425_S1_CH1 },
1410 .inputmute = TDA8425_S1_OFF, 1422 .inputmute = TDA8425_S1_OFF,
1411 1423
1412 .setmode = tda8425_setmode,
1413 .initialize = tda8425_initialize,
1414 }, 1424 },
1415 { 1425 {
1416 .name = "pic16c54 (PV951)", 1426 .name = "pic16c54 (PV951)",
@@ -1435,6 +1445,7 @@ static struct CHIPDESC chiplist[] = {
1435 .addr_hi = I2C_ADDR_TDA9840 >> 1, 1445 .addr_hi = I2C_ADDR_TDA9840 >> 1,
1436 .registers = 2, 1446 .registers = 2,
1437 1447
1448 /* callbacks */
1438 .getmode = ta8874z_getmode, 1449 .getmode = ta8874z_getmode,
1439 .setmode = ta8874z_setmode, 1450 .setmode = ta8874z_setmode,
1440 .checkmode = generic_checkmode, 1451 .checkmode = generic_checkmode,