]> 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)
committerJuerg Haefliger <juerg.haefliger@canonical.com>
Wed, 13 Sep 2017 08:03:43 +0000 (10:03 +0200)
commit5a4d2de6dd59ad2c2c24ba1d0bdb1ac7569874ca
tree2c40067814f22e5e3ffb4d5711cb1fd5015746d7
parentf07b53f9dc25305e238e02004630cf09b413bc58
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