Commit 90a5537b authored by Felix Brack's avatar Felix Brack Committed by Jacek Anaszewski

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: default avatarFelix Brack <fb@ltec.ch>
Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
parent 35c7d301
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment