aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-cards.c
diff options
context:
space:
mode:
authorNicola Soranzo <nsoranzo@tiscali.it>2009-02-10 21:28:24 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:45 -0400
commita1a6ee74f2c68918f2e145dccba3637eea91a52a (patch)
treebd30e007e8903b469c785bf531527986faa6fa66 /drivers/media/video/em28xx/em28xx-cards.c
parent7aa0eabde08259c47586df934921c67cff36e7dc (diff)
V4L/DVB (10525): em28xx: Coding style fixes and a typo correction
Lots of coding style fixes and a typo correction for em28xx. [dougsland@redhat.com: fixed a reject due to a change on em28xx-audio.c] Signed-off-by: Nicola Soranzo <nsoranzo@tiscali.it> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index 89a8f2657b13..419304d31256 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -244,7 +244,7 @@ struct em28xx_board em28xx_boards[] = {
244 .name = "Hauppauge WinTV USB 2", 244 .name = "Hauppauge WinTV USB 2",
245 .tuner_type = TUNER_PHILIPS_FM1236_MK3, 245 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
246 .tda9887_conf = TDA9887_PRESENT | 246 .tda9887_conf = TDA9887_PRESENT |
247 TDA9887_PORT1_ACTIVE| 247 TDA9887_PORT1_ACTIVE |
248 TDA9887_PORT2_ACTIVE, 248 TDA9887_PORT2_ACTIVE,
249 .decoder = EM28XX_TVP5150, 249 .decoder = EM28XX_TVP5150,
250 .has_msp34xx = 1, 250 .has_msp34xx = 1,
@@ -517,7 +517,7 @@ struct em28xx_board em28xx_boards[] = {
517 }, 517 },
518 [EM2861_BOARD_YAKUMO_MOVIE_MIXER] = { 518 [EM2861_BOARD_YAKUMO_MOVIE_MIXER] = {
519 .name = "Yakumo MovieMixer", 519 .name = "Yakumo MovieMixer",
520 .tuner_type = TUNER_ABSENT, /* Capture only device */ 520 .tuner_type = TUNER_ABSENT, /* Capture only device */
521 .decoder = EM28XX_TVP5150, 521 .decoder = EM28XX_TVP5150,
522 .input = { { 522 .input = { {
523 .type = EM28XX_VMUX_TELEVISION, 523 .type = EM28XX_VMUX_TELEVISION,
@@ -861,11 +861,11 @@ struct em28xx_board em28xx_boards[] = {
861 } }, 861 } },
862 }, 862 },
863 [EM2800_BOARD_GRABBEEX_USB2800] = { 863 [EM2800_BOARD_GRABBEEX_USB2800] = {
864 .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder", 864 .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder",
865 .is_em2800 = 1, 865 .is_em2800 = 1,
866 .decoder = EM28XX_SAA711X, 866 .decoder = EM28XX_SAA711X,
867 .tuner_type = TUNER_ABSENT, /* capture only board */ 867 .tuner_type = TUNER_ABSENT, /* capture only board */
868 .input = { { 868 .input = { {
869 .type = EM28XX_VMUX_COMPOSITE1, 869 .type = EM28XX_VMUX_COMPOSITE1,
870 .vmux = SAA7115_COMPOSITE0, 870 .vmux = SAA7115_COMPOSITE0,
871 .amux = EM28XX_AMUX_LINE_IN, 871 .amux = EM28XX_AMUX_LINE_IN,
@@ -1217,7 +1217,9 @@ struct em28xx_board em28xx_boards[] = {
1217 .has_dvb = 1, 1217 .has_dvb = 1,
1218 .dvb_gpio = kworld_330u_digital, 1218 .dvb_gpio = kworld_330u_digital,
1219 .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, 1219 .xclk = EM28XX_XCLK_FREQUENCY_12MHZ,
1220 .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE | EM28XX_I2C_EEPROM_ON_BOARD | EM28XX_I2C_EEPROM_KEY_VALID, 1220 .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE |
1221 EM28XX_I2C_EEPROM_ON_BOARD |
1222 EM28XX_I2C_EEPROM_KEY_VALID,
1221 .input = { { 1223 .input = { {
1222 .type = EM28XX_VMUX_TELEVISION, 1224 .type = EM28XX_VMUX_TELEVISION,
1223 .vmux = TVP5150_COMPOSITE0, 1225 .vmux = TVP5150_COMPOSITE0,
@@ -1299,7 +1301,7 @@ struct em28xx_board em28xx_boards[] = {
1299const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); 1301const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
1300 1302
1301/* table of devices that work with this driver */ 1303/* table of devices that work with this driver */
1302struct usb_device_id em28xx_id_table [] = { 1304struct usb_device_id em28xx_id_table[] = {
1303 { USB_DEVICE(0xeb1a, 0x2750), 1305 { USB_DEVICE(0xeb1a, 0x2750),
1304 .driver_info = EM2750_BOARD_UNKNOWN }, 1306 .driver_info = EM2750_BOARD_UNKNOWN },
1305 { USB_DEVICE(0xeb1a, 0x2751), 1307 { USB_DEVICE(0xeb1a, 0x2751),
@@ -1401,7 +1403,7 @@ MODULE_DEVICE_TABLE(usb, em28xx_id_table);
1401/* 1403/*
1402 * EEPROM hash table for devices with generic USB IDs 1404 * EEPROM hash table for devices with generic USB IDs
1403 */ 1405 */
1404static struct em28xx_hash_table em28xx_eeprom_hash [] = { 1406static struct em28xx_hash_table em28xx_eeprom_hash[] = {
1405 /* P/N: SA 60002070465 Tuner: TVF7533-MF */ 1407 /* P/N: SA 60002070465 Tuner: TVF7533-MF */
1406 {0x6ce05a8f, EM2820_BOARD_PROLINK_PLAYTV_USB2, TUNER_YMEC_TVF_5533MF}, 1408 {0x6ce05a8f, EM2820_BOARD_PROLINK_PLAYTV_USB2, TUNER_YMEC_TVF_5533MF},
1407 {0x72cc5a8b, EM2820_BOARD_PROLINK_PLAYTV_BOX4_USB2, TUNER_YMEC_TVF_5533MF}, 1409 {0x72cc5a8b, EM2820_BOARD_PROLINK_PLAYTV_BOX4_USB2, TUNER_YMEC_TVF_5533MF},
@@ -1433,7 +1435,7 @@ int em28xx_tuner_callback(void *ptr, int component, int command, int arg)
1433} 1435}
1434EXPORT_SYMBOL_GPL(em28xx_tuner_callback); 1436EXPORT_SYMBOL_GPL(em28xx_tuner_callback);
1435 1437
1436static void inline em28xx_set_model(struct em28xx *dev) 1438static inline void em28xx_set_model(struct em28xx *dev)
1437{ 1439{
1438 memcpy(&dev->board, &em28xx_boards[dev->model], sizeof(dev->board)); 1440 memcpy(&dev->board, &em28xx_boards[dev->model], sizeof(dev->board));
1439 1441