aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2018-11-12 10:02:57 +0100
committerLee Jones <[email protected]>2018-11-27 12:16:41 +0000
commit61170ee9386888f1e6f7e9cc58e8d9a8c2a3c1dd (patch)
treef7d1b89ae3ccd952c09ce3be25a08c47f49c799b /net/lapb/lapb_timer.c
parente4c8ae3e3d6d473bfbfbb5db234792b9f8ddab3b (diff)
backlight: pwm_bl: Fix devicetree parsing with auto-generated brightness tables
Commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED linearly to human eye") made the parse-dt function return early when using an auto- generated brightness-table, but didn't take into account that some more settings were handled below the brightness handling, like power-on-delays and also setting the pdata enable-gpio to -EINVAL. This surfaces for example in the case of a backlight without any enable-gpio which then tries to use gpio-0 in error. Fix this by simply moving the trailing settings above the brightness handling. Fixes: 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED linearly to human eye") Signed-off-by: Heiko Stuebner <[email protected]> Acked-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions