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-video.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-video.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index a8aa09c5bc5f..fb533fda2198 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -1142,9 +1142,9 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
1142 | static int em28xx_reg_len(int reg) | 1142 | static int em28xx_reg_len(int reg) |
1143 | { | 1143 | { |
1144 | switch (reg) { | 1144 | switch (reg) { |
1145 | case AC97LSB_REG: | 1145 | case EM28XX_R40_AC97LSB: |
1146 | case HSCALELOW_REG: | 1146 | case EM28XX_R30_HSCALELOW: |
1147 | case VSCALELOW_REG: | 1147 | case EM28XX_R32_VSCALELOW: |
1148 | return 2; | 1148 | return 2; |
1149 | default: | 1149 | default: |
1150 | return 1; | 1150 | return 1; |