diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-01-31 13:27:37 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-05 17:47:37 +0400 |
commit | 7556ba9bfb2ef0f2709fba40e77c7cc488645c79 (patch) | |
tree | 9c8d532e0d08d2f755eab1b25caa7dbf76cd80c5 /drivers/media/usb/tlg2300/pd-common.h | |
parent | c5d8907faa93757aa440fd2e584e4db4b8edc14a (diff) | |
download | linux-7556ba9bfb2ef0f2709fba40e77c7cc488645c79.tar.xz |
[media] tlg2300: fix frequency handling
The usual set of problems: the frequency isn't clamped to the frequency range,
no tuner index check and the frequency isn't initialized properly on module
load.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/tlg2300/pd-common.h')
-rw-r--r-- | drivers/media/usb/tlg2300/pd-common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/tlg2300/pd-common.h b/drivers/media/usb/tlg2300/pd-common.h index 052cb0c9530c..55fe66e440e3 100644 --- a/drivers/media/usb/tlg2300/pd-common.h +++ b/drivers/media/usb/tlg2300/pd-common.h @@ -36,8 +36,8 @@ #define V4L_PAL_VBI_FRAMESIZE (V4L_PAL_VBI_LINES * 1440 * 2) #define V4L_NTSC_VBI_FRAMESIZE (V4L_NTSC_VBI_LINES * 1440 * 2) -#define TUNER_FREQ_MIN (45000000) -#define TUNER_FREQ_MAX (862000000) +#define TUNER_FREQ_MIN (45000000U) +#define TUNER_FREQ_MAX (862000000U) struct vbi_data { struct video_device v_dev; |