diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-07-10 09:07:06 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-18 08:39:42 +0100 |
commit | 1e3b09701223afdff3b0353f87b566e7848bb24a (patch) | |
tree | b109b7a4bb551f914dd4e1fbd5978dac7560fc20 /drivers/video/backlight/pwm_bl.c | |
parent | b3de3402e5ab8edfbbdbbb86393692431522f6d3 (diff) | |
download | lwn-1e3b09701223afdff3b0353f87b566e7848bb24a.tar.gz lwn-1e3b09701223afdff3b0353f87b566e7848bb24a.zip |
backlight: jornada720: Minimise code duplication and handle errors better
Rickard Strandqvi's ran a code analysis application which found that
jornada_lcd_get_contrast(() and jornada_lcd_set_contrast() contained
some code duplication (calling the same functions during various
code execution paths) and failed to return errors in a consistent
manner. This patch aims to simplify the code, coercing it into
behaving at a level expected of a driver in the Linux kernel.
Suggested-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight/pwm_bl.c')
0 files changed, 0 insertions, 0 deletions