From: Laurent Pinchart Date: Thu, 8 May 2014 13:03:37 +0000 (-0300) Subject: [media] mt9p031: Fix BLC configuration restore when disabling test pattern X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=535ec214e23adaf72c775938e9e9c6c1cf6fc5b9;p=pandora-kernel.git [media] mt9p031: Fix BLC configuration restore when disabling test pattern Auto BLC and BLC digital offset are disabled when enabling the test pattern and must be restored when disabling it. The driver does so by calling the set control handler on the auto BLC and BLC offset controls, but this programs the hardware with the new value of those controls, not the current value. Fix this by writing to the registers directly. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed