diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-09-05 19:33:21 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-04 00:28:44 +0400 |
commit | 3dcc731a93679d75a1f90a969b34aa9d7acd1cbf (patch) | |
tree | 1210662011df8633dfbc822cbf50dcf8f447badc /drivers/media/video/msp3400-kthreads.c | |
parent | da83d9dc0ac18ffb07b5b344e237005a0ba08089 (diff) | |
download | linux-3dcc731a93679d75a1f90a969b34aa9d7acd1cbf.tar.xz |
[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>
Diffstat (limited to 'drivers/media/video/msp3400-kthreads.c')
0 files changed, 0 insertions, 0 deletions