V4L/DVB (7612): em28xx-cards: use register names for GPIO/GPO
authorMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 18 Apr 2008 00:43:38 +0000 (21:43 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:42 +0000 (14:09 -0300)
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>
drivers/media/video/em28xx/em28xx-cards.c

index 0cf61a502203d680db1616e45d4417a263fe76af..cbf6e179acb4aba8010f14cb9b0c29cdaf1569c2 100644 (file)
@@ -436,18 +436,18 @@ MODULE_DEVICE_TABLE(usb, em28xx_id_table);
 
 /* Board Hauppauge WinTV HVR 900 analog */
 struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = {
-       {  -1,   -1,   6},
-       {0x08, 0x2d,  10},
-       {0x08, 0x3d,   5},
-       {  -1,   -1,  -1},
+       {  -1,          -1,     6},
+       {EM_R08_GPIO,   0x2d,  10},
+       {EM_R08_GPIO,   0x3d,   5},
+       {  -1,          -1,    -1},
 };
 /* Board Hauppauge WinTV HVR 900 digital */
 struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = {
-       {  -1,   -1,   6},
-       {0x08, 0x2e,   6},
-       {0x08, 0x3e,   6},
-       {0x04, 0x04,  10},
-       {0x04, 0x0c,  10},
+       {  -1,          -1,     6},
+       {EM_R08_GPIO,   0x2e,   6},
+       {EM_R08_GPIO,   0x3e,   6},
+       {EM_R04_GPO,    0x04,  10},
+       {EM_R04_GPO,    0x0c,  10},
        { -1,    -1,  -1},
 };