diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-17 20:44:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:09:42 -0400 |
commit | 41facaa4b63cc1a0ff5a900149a29942d47e1491 (patch) | |
tree | 8c6b1ec84b0ed96e27f6edfc9c297d593b55288f /drivers/media/video/em28xx/em28xx-cards.c | |
parent | 7e26ca8012a8392c5e53055b8ff3d9512faee6c6 (diff) |
V4L/DVB (7613): em28xx: rename registers
Now, all registers will follow the same convension:
EM28XX_R<reg_number>_<reg_name>
This allows to associate a register with its value, and also with a canonical
name. Also, registers that are specific to a given chip were renamed accordingly,
as EM2800_foo (for 2800 only registers) or EM2880_foo (for registers that started
to appear on em2880).
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index cbf6e179acb4..ed50b4e55264 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -437,17 +437,17 @@ MODULE_DEVICE_TABLE(usb, em28xx_id_table); | |||
437 | /* Board Hauppauge WinTV HVR 900 analog */ | 437 | /* Board Hauppauge WinTV HVR 900 analog */ |
438 | struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = { | 438 | struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = { |
439 | { -1, -1, 6}, | 439 | { -1, -1, 6}, |
440 | {EM_R08_GPIO, 0x2d, 10}, | 440 | {EM28XX_R08_GPIO, 0x2d, 10}, |
441 | {EM_R08_GPIO, 0x3d, 5}, | 441 | {EM28XX_R08_GPIO, 0x3d, 5}, |
442 | { -1, -1, -1}, | 442 | { -1, -1, -1}, |
443 | }; | 443 | }; |
444 | /* Board Hauppauge WinTV HVR 900 digital */ | 444 | /* Board Hauppauge WinTV HVR 900 digital */ |
445 | struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = { | 445 | struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = { |
446 | { -1, -1, 6}, | 446 | { -1, -1, 6}, |
447 | {EM_R08_GPIO, 0x2e, 6}, | 447 | {EM28XX_R08_GPIO, 0x2e, 6}, |
448 | {EM_R08_GPIO, 0x3e, 6}, | 448 | {EM28XX_R08_GPIO, 0x3e, 6}, |
449 | {EM_R04_GPO, 0x04, 10}, | 449 | {EM2880_R04_GPO, 0x04, 10}, |
450 | {EM_R04_GPO, 0x0c, 10}, | 450 | {EM2880_R04_GPO, 0x0c, 10}, |
451 | { -1, -1, -1}, | 451 | { -1, -1, -1}, |
452 | }; | 452 | }; |
453 | 453 | ||
@@ -528,7 +528,7 @@ void em28xx_pre_card_setup(struct em28xx *dev) | |||
528 | int rc; | 528 | int rc; |
529 | 529 | ||
530 | dev->wait_after_write = 5; | 530 | dev->wait_after_write = 5; |
531 | rc = em28xx_read_reg(dev, CHIPID_REG); | 531 | rc = em28xx_read_reg(dev, EM28XX_R0A_CHIPID); |
532 | if (rc > 0) { | 532 | if (rc > 0) { |
533 | switch (rc) { | 533 | switch (rc) { |
534 | case CHIP_ID_EM2883: | 534 | case CHIP_ID_EM2883: |
@@ -547,8 +547,8 @@ void em28xx_pre_card_setup(struct em28xx *dev) | |||
547 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: | 547 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
548 | case EM2880_BOARD_TERRATEC_HYBRID_XS: | 548 | case EM2880_BOARD_TERRATEC_HYBRID_XS: |
549 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950: | 549 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950: |
550 | em28xx_write_regs(dev, XCLK_REG, "\x27", 1); | 550 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
551 | em28xx_write_regs(dev, I2C_CLK_REG, "\x40", 1); | 551 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
552 | em28xx_write_regs(dev, 0x08, "\xff", 1); | 552 | em28xx_write_regs(dev, 0x08, "\xff", 1); |
553 | em28xx_write_regs(dev, 0x04, "\x00", 1); | 553 | em28xx_write_regs(dev, 0x04, "\x00", 1); |
554 | msleep(100); | 554 | msleep(100); |