projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed6d27
)
media: usbtv: Use the constant for supported standards
author
Hugo Grostabussiat
<
[email protected]
>
Sun, 8 Apr 2018 21:12:01 +0000
(17:12 -0400)
committer
Mauro Carvalho Chehab
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/usb/usbtv/usbtv-video.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/usbtv/usbtv-video.c
b/drivers/media/usb/usbtv/usbtv-video.c
index 767fab1cc5cf3f5d8f656cac60e925a3ab337856..c2f8e50228ac31f0c14ad613120a35526be7ca13 100644
(file)
--- 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;