From: Benoît Thébaudeau Date: Tue, 26 Feb 2013 18:32:49 +0000 (-0300) Subject: [media] soc-camera: mt9m111: Fix auto-exposure control X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~81^2~399 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbaa5c54cb73897ed6c2544a60ed52aa3215b0f6;p=pandora-kernel.git [media] soc-camera: mt9m111: Fix auto-exposure control Commit f9bd5843658e18a7097fc7258c60fb840109eaa8 changed V4L2_CID_EXPOSURE_AUTO from boolean to enum, and commit af8425c54beb3c32cbb503a379132b3975535289 changed the creation of this control into a menu for the mt9m111. However, mt9m111_set_autoexposure() is still interpreting the value set for this control as a boolean, which also conflicts with the default value of this control set to V4L2_EXPOSURE_AUTO (0). This patch makes mt9m111_set_autoexposure() interpret the value set for V4L2_CID_EXPOSURE_AUTO as defined by enum v4l2_exposure_auto_type. Signed-off-by: Benoît Thébaudeau Tested-by: Javier Martin Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed