summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorFelix Brack <fb@ltec.ch>2016-10-26 16:08:02 +0200
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-11-22 12:07:04 +0100
commit90a5537bd83b461180120c926b7795c7dd44093a (patch)
treed3f20d178c96f2ae6f68fe272d4504b5992b3233 /drivers/leds
parent35c7d30179fbc17af7281ccea18e6d74c003e448 (diff)
downloadlinux-90a5537bd83b461180120c926b7795c7dd44093a.tar.bz2
leds: pca9532: Use default trigger value from platform data
The value for a led's default_trigger should come from platform data instead of data (which is always 0). Signed-off-by: Felix Brack <fb@ltec.ch> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-pca9532.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c
index 09a7cffbc46f..06e63106ae1e 100644
--- a/drivers/leds/leds-pca9532.c
+++ b/drivers/leds/leds-pca9532.c
@@ -369,7 +369,7 @@ static int pca9532_configure(struct i2c_client *client,
led->state = pled->state;
led->name = pled->name;
led->ldev.name = led->name;
- led->ldev.default_trigger = led->default_trigger;
+ led->ldev.default_trigger = pled->default_trigger;
led->ldev.brightness = LED_OFF;
led->ldev.brightness_set_blocking =
pca9532_set_brightness;