From 15b4c54ea42a0e786096da006562db1ef6f73017 Mon Sep 17 00:00:00 2001 From: Hugo Grostabussiat Date: Sun, 8 Apr 2018 17:12:01 -0400 Subject: [PATCH] media: usbtv: Use the constant for supported standards Use the USBTV_TV_STD define instead of repeating ourselves. Signed-off-by: Hugo Grostabussiat Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/usbtv/usbtv-video.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.11.0