summaryrefslogtreecommitdiff
path: root/drivers/video/backlight/lm3533_bl.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-07-10 12:07:06 +0400
committerLee Jones <lee.jones@linaro.org>2014-07-18 11:39:42 +0400
commit1e3b09701223afdff3b0353f87b566e7848bb24a (patch)
treeb109b7a4bb551f914dd4e1fbd5978dac7560fc20 /drivers/video/backlight/lm3533_bl.c
parentb3de3402e5ab8edfbbdbbb86393692431522f6d3 (diff)
downloadlinux-1e3b09701223afdff3b0353f87b566e7848bb24a.tar.xz
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/lm3533_bl.c')
0 files changed, 0 insertions, 0 deletions