diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2011-03-06 00:55:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-07 13:52:55 -0800 |
commit | c0b3a8a034c225727a810977aee0ccd72b2d92c9 (patch) | |
tree | ddf9d962d199a8028cea596ac8e9e2cc6a3109a7 /drivers/staging/easycap/Makefile | |
parent | fd49b7879890d0f17c1cb86eb07e449d9c9f0699 (diff) |
staging/easycap: reduce code duplication for ssa stk settings
reduce code duplication in register settings
instead of
if (ntsc)
<CODE BLOCK>
else
<CODE BLOCK>
use
cfg = (ntsc) ? <chip>configNTSC : <chip>configPAL;
<CODE BLOCK>
in addition change while loops to more readable for loops
Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/easycap/Makefile')
0 files changed, 0 insertions, 0 deletions