media: usbtv: Use the constant for supported standards
authorHugo Grostabussiat <bonstra@bonstra.fr.eu.org>
Sun, 8 Apr 2018 21:12:01 +0000 (17:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 10:53:11 +0000 (06:53 -0400)
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>
drivers/media/usb/usbtv/usbtv-video.c

index 767fab1cc5cf3f5d8f656cac60e925a3ab337856..c2f8e50228ac31f0c14ad613120a35526be7ca13 100644 (file)
@@ -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;