Skip to content

Commit

Permalink
leds: pca9532: Use default trigger value from platform data
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jacek Anaszewski <[email protected]>
  • Loading branch information
fxrb authored and janaszewski committed Nov 22, 2016
1 parent 35c7d30 commit 90a5537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-pca9532.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90a5537

Please sign in to comment.