leds-gpio: Remove stray assignment to brightness_set
authorPhil Elwell <phil@raspberrypi.org>
Tue, 28 Mar 2017 16:41:30 +0000 (17:41 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:07:21 +0000 (01:07 +0000)
commit1bc1112746a8b9c4a4cc7da397376e562b754ae0
treeb52a1b0c685660172b360bcf12398ba0c99429c7
parent92f9628787b8cba5108993f73e170c40c5caabdd
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>
drivers/leds/leds-gpio.c