]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
leds-gpio: Remove stray assignment to brightness_set
authorPhil Elwell <phil@raspberrypi.org>
Tue, 28 Mar 2017 16:41:30 +0000 (17:41 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 28 Aug 2017 18:30:35 +0000 (15:30 -0300)
commit68397fd407380a15285a48a7ad27bae376d1a451
treea6d25c8ab48568f2fe303399fa219cf741b0fcf9
parent6dccee8692406347aa00fa9e0b493d71e3e3d7f6
leds-gpio: Remove stray assignment to brightness_set

The brightness_set method is intended for use cases that must not
block, and can only be used if the GPIO provider can never sleep.
Remove an accidental initialisation (a copy-and-paste error) that
sets it regardless, which has been seen to cause crashes with the
gpio expander driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/leds/leds-gpio.c