aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-17 20:43:38 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:42 -0400
commit7e26ca8012a8392c5e53055b8ff3d9512faee6c6 (patch)
tree0f9deed97b472e0a308fce6f4745d791fd75c101 /drivers/media/video
parent2ba890ec0849b222a6dabb5192ccd8fd1696d6d3 (diff)
V4L/DVB (7612): em28xx-cards: use register names for GPIO/GPO
Before this patch, registers 0x04 and 0x08 were referenced by its value. This is bad, since makes harder for someone to understand what this is doing. This patch renames those two registers into an appropriate name. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c18
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 0cf61a502203..cbf6e179acb4 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -436,18 +436,18 @@ MODULE_DEVICE_TABLE(usb, em28xx_id_table);
436 436
437/* Board Hauppauge WinTV HVR 900 analog */ 437/* Board Hauppauge WinTV HVR 900 analog */
438struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = { 438struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = {
439 { -1, -1, 6}, 439 { -1, -1, 6},
440 {0x08, 0x2d, 10}, 440 {EM_R08_GPIO, 0x2d, 10},
441 {0x08, 0x3d, 5}, 441 {EM_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 */
445struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = { 445struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = {
446 { -1, -1, 6}, 446 { -1, -1, 6},
447 {0x08, 0x2e, 6}, 447 {EM_R08_GPIO, 0x2e, 6},
448 {0x08, 0x3e, 6}, 448 {EM_R08_GPIO, 0x3e, 6},
449 {0x04, 0x04, 10}, 449 {EM_R04_GPO, 0x04, 10},
450 {0x04, 0x0c, 10}, 450 {EM_R04_GPO, 0x0c, 10},
451 { -1, -1, -1}, 451 { -1, -1, -1},
452}; 452};
453 453