From: Guennadi Liakhovetski Date: Mon, 5 Sep 2011 15:33:21 +0000 (-0300) Subject: [media] V4L: soc-camera: split a function into two X-Git-Tag: v3.2-rc1~63^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dcc731a93679d75a1f90a969b34aa9d7acd1cbf;p=pandora-kernel.git [media] V4L: soc-camera: split a function into two The soc_camera_power_set() function processes two cases: power on anf off. These two cases don't share and common code, and the function is always called with a constant power on / off argument. Splitting this function into two removes a condition check, reduces indentation levels and makes the code look cleaner. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed