diff options
author | Hugo Grostabussiat <bonstra@bonstra.fr.eu.org> | 2018-04-08 17:12:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-04 06:53:11 -0400 |
commit | 15b4c54ea42a0e786096da006562db1ef6f73017 (patch) | |
tree | 903a918a55e2b3d22d99eefe9b47f77f14ca4562 | |
parent | bed6d27bcf02d8159650f979cbd35546035b6717 (diff) |
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>
-rw-r--r-- | drivers/media/usb/usbtv/usbtv-video.c | 3 |
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; |