summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-17 18:43:38 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-17 18:43:38 -0300
commit9caa9cb1be7adca320b6bb47892a814d7dac9eaa (patch)
tree709ab0609a8d5c3eee5cae64d600afab6a7dc6ea /linux/drivers/media/video
parentc150362fac211862564db9a23dca285199227e1d (diff)
downloadmediapointer-dvb-s2-9caa9cb1be7adca320b6bb47892a814d7dac9eaa.tar.gz
mediapointer-dvb-s2-9caa9cb1be7adca320b6bb47892a814d7dac9eaa.tar.bz2
em28xx-cards: use register names for GPIO/GPO
From: Mauro Carvalho Chehab <mchehab@infradead.org> 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 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-cards.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c
index dbb9a366d..06f8c101a 100644
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c
@@ -437,18 +437,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},
};