[media] V4L: soc-camera: split a function into two
commit3dcc731a93679d75a1f90a969b34aa9d7acd1cbf
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 5 Sep 2011 15:33:21 +0000 (5 12:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:28:44 +0000 (3 18:28 -0200)
tree1210662011df8633dfbc822cbf50dcf8f447badc
parentda83d9dc0ac18ffb07b5b344e237005a0ba08089
[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 <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c