V4L/DVB (8497): uvcvideo: Make the auto-exposure menu control V4L2 compliant

From: Linux Kernel Mailing List
Date: Monday, July 28, 2008 - 10:03 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90ac5e...
Commit:     90ac5ea37f91e38d798c5e355232ce7f9c2a24d4
Parent:     d53687d1d22c3204394658a31654de2f1efb0e8f
Author:     Laurent Pinchart <laurent.pinchart@skynet.be>
AuthorDate: Sat Jul 26 11:42:29 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab@infradead.org>
CommitDate: Sat Jul 26 13:18:24 2008 -0300

    V4L/DVB (8497): uvcvideo: Make the auto-exposure menu control V4L2 compliant
    
    V4L2 and UVC enumerate the auto-exposure settings in a different order. This
    patch fixes the auto-exposure menu declaration to match the V4L2 spec.
    
    Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
 drivers/media/video/uvc/uvc_ctrl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/uvc/uvc_ctrl.c b/drivers/media/video/uvc/uvc_ctrl.c
index 3ae9551..f54d06a 100644
--- a/drivers/media/video/uvc/uvc_ctrl.c
+++ b/drivers/media/video/uvc/uvc_ctrl.c
@@ -195,8 +195,8 @@ static struct uvc_menu_info power_line_frequency_controls[] = {
 };
 
 static struct uvc_menu_info exposure_auto_controls[] = {
-	{ 1, "Manual Mode" },
 	{ 2, "Auto Mode" },
+	{ 1, "Manual Mode" },
 	{ 4, "Shutter Priority Mode" },
 	{ 8, "Aperture Priority Mode" },
 };
--