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>
This commit is contained in:
Hugo Grostabussiat 2018-04-08 17:12:01 -04:00 committed by Mauro Carvalho Chehab
parent bed6d27bcf
commit 15b4c54ea4

View 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;