From: Hugo Grostabussiat Date: Sun, 8 Apr 2018 21:12:01 +0000 (-0400) Subject: media: usbtv: Use the constant for supported standards X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=15b4c54ea42a0e786096da006562db1ef6f73017;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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;