summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/usbtv
diff options
context:
space:
mode:
authorHugo Grostabussiat <bonstra@bonstra.fr.eu.org>2018-04-08 23:12:01 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-04 12:53:11 +0200
commit15b4c54ea42a0e786096da006562db1ef6f73017 (patch)
tree903a918a55e2b3d22d99eefe9b47f77f14ca4562 /drivers/media/usb/usbtv
parentmedia: usbtv: Enforce standard for color decoding (diff)
downloadlinux-15b4c54ea42a0e786096da006562db1ef6f73017.tar.xz
linux-15b4c54ea42a0e786096da006562db1ef6f73017.zip
media: usbtv: Use the constant for supported standards
Use the USBTV_TV_STD define instead of repeating ourselves. Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/usbtv')
-rw-r--r--drivers/media/usb/usbtv/usbtv-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c
index 767fab1cc5cf..c2f8e50228ac 100644
--- a/drivers/media/usb/usbtv/usbtv-video.c
+++ b/drivers/media/usb/usbtv/usbtv-video.c
@@ -670,8 +670,7 @@ static int usbtv_s_std(struct file *file, void *priv, v4l2_std_id norm)
int ret = -EINVAL;
struct usbtv *usbtv = video_drvdata(file);
- if ((norm & V4L2_STD_525_60) || (norm & V4L2_STD_PAL) ||
- (norm & V4L2_STD_SECAM))
+ if (norm & USBTV_TV_STD)
ret = usbtv_select_norm(usbtv, norm);
return ret;