Skip to content
Snippets Groups Projects
Commit d3f48ec0 authored by Brian Masney's avatar Brian Masney Committed by Lee Jones
Browse files

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: 28e64a68 ("backlight: lm3630: apply chip revision")
Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent bc32286c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment