leds: pca9532: Use default trigger value from platform data
authorFelix Brack <fb@ltec.ch>
Wed, 26 Oct 2016 14:08:02 +0000 (16:08 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 22 Nov 2016 11:07:04 +0000 (12:07 +0100)
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>
drivers/leds/leds-pca9532.c

index 09a7cffbc46f9fab44232787c4932715e84ef4f1..06e63106ae1e8e09129ec89cb1be332bd13c7f70 100644 (file)
@@ -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;