OSDN Git Service

backlight: lm3630a: Return 0 on success in update_status functions
authorBrian Masney <masneyb@onstation.org>
Wed, 24 Apr 2019 09:25:03 +0000 (05:25 -0400)
committerLee Jones <lee.jones@linaro.org>
Tue, 14 May 2019 07:16:01 +0000 (08:16 +0100)
commitd3f48ec0954c6aac736ab21c34a35d7554409112
tree2e6ad15b4efc7f897e81f973318c06abbbc48666
parentbc32286cab55ba92bbc0017a60c18fe6475a93cb
backlight: lm3630a: Return 0 on success in update_status functions

lm3630a_bank_a_update_status() and lm3630a_bank_b_update_status()
both return the brightness value if the brightness was successfully
updated. Writing to these attributes via sysfs would cause a 'Bad
address' error to be returned. These functions should return 0 on
success, so let's change it to correct that error.

Fixes: 28e64a68a2ef ("backlight: lm3630: apply chip revision")
Signed-off-by: Brian Masney <masneyb@onstation.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/lm3630a_bl.c