aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-ioctl.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2010-03-13 20:37:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-18 00:47:15 -0300
commit4e1af31aaaa8cc4a5cc1d894bdf04dfc7450d47f (patch)
tree08f18d52d39f390958e8638dff4123eac7ec8cf8 /drivers/media/video/ivtv/ivtv-ioctl.c
parent2443baeaa01388f56824c55c087510312b8d8197 (diff)
downloadkernel_samsung_smdk4412-4e1af31aaaa8cc4a5cc1d894bdf04dfc7450d47f.zip
kernel_samsung_smdk4412-4e1af31aaaa8cc4a5cc1d894bdf04dfc7450d47f.tar.gz
kernel_samsung_smdk4412-4e1af31aaaa8cc4a5cc1d894bdf04dfc7450d47f.tar.bz2
V4L/DVB: ivtv, ivtvfb: Use a define for the output line and field register address
Get rid of the magic number 0x28c0 used in several places in the ivtv and ivtvfb driver and define the register address to a meaningful name. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c
index 2192bc42..c29ff98 100644
--- a/drivers/media/video/ivtv/ivtv-ioctl.c
+++ b/drivers/media/video/ivtv/ivtv-ioctl.c
@@ -1140,7 +1140,7 @@ int ivtv_s_std(struct file *file, void *fh, v4l2_std_id *std)
for (f = 0; f < 4; f++) {
prepare_to_wait(&itv->vsync_waitq, &wait,
TASK_UNINTERRUPTIBLE);
- if ((read_reg(0x28c0) >> 16) < 100)
+ if ((read_reg(IVTV_REG_DEC_LINE_FIELD) >> 16) < 100)
break;
schedule_timeout(msecs_to_jiffies(25));
}