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>
Sat, 31 Mar 2018 14:53:19 +0000 (15:53 +0100)
commit28e8a1d54515d1b4f9e44f1a8dbb486b0a714af9
treed1225e4a6933477eed1445b81d796493b0727c23
parent1ff5910b6644c06da02e5a30313267f676a37ee5
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