diff mbox

V4L: fix ENUMSTD ioctl to report all supported standards

Message ID Pine.LNX.4.64.1003260758550.4298@axis700.grange (mailing list archive)
State Rejected
Headers show

Commit Message

Guennadi Liakhovetski March 26, 2010, 7:06 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index 4b11257..2389df0 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -1065,9 +1065,7 @@  static long __video_do_ioctl(struct file *file,
 			j++;
 			if (curr_id == 0)
 				break;
-			if (curr_id != V4L2_STD_PAL &&
-			    curr_id != V4L2_STD_SECAM &&
-			    curr_id != V4L2_STD_NTSC)
+			if (is_power_of_2(curr_id))
 				id &= ~curr_id;
 		}
 		if (i <= index)