commit | 3dcc731a93679d75a1f90a969b34aa9d7acd1cbf | [log] [tgz] |
---|---|---|
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | Mon Sep 05 12:33:21 2011 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Thu Nov 03 18:28:44 2011 -0200 |
tree | 1210662011df8633dfbc822cbf50dcf8f447badc | |
parent | da83d9dc0ac18ffb07b5b344e237005a0ba08089 [diff] |
[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>