diff options
author | Johann Neuhauser <johann@it-neuhauser.de> | 2018-06-11 21:15:40 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-06-16 10:08:51 +0200 |
commit | 10f8823254a6bf96a09a00a73e138a0da226040f (patch) | |
tree | b3df58a153f8862867785a905e6d77a19f2acbd5 | |
parent | f7a220b2f62724bccb76abe622281808e3f6f061 (diff) | |
download | upstream-10f8823254a6bf96a09a00a73e138a0da226040f.tar.gz upstream-10f8823254a6bf96a09a00a73e138a0da226040f.tar.bz2 upstream-10f8823254a6bf96a09a00a73e138a0da226040f.zip |
ath79: led-resets: add default-trigger property
Add support for the common led property "linux,default-trigger". It
allows to set a default led trigger via devicetree.
Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
[add commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
-rw-r--r-- | target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch b/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch index 495d79288b..d15c77a8dd 100644 --- a/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch +++ b/target/linux/ath79/patches-4.14/0003-leds-add-reset-controller-based-driver.patch @@ -33,7 +33,7 @@ Signed-off-by: John Crispin <john@phrozen.org> --- /dev/null +++ b/drivers/leds/leds-reset.c -@@ -0,0 +1,137 @@ +@@ -0,0 +1,140 @@ +/* + * Copyright (C) 2018 John Crispin <john@phrozen.org> + * @@ -112,6 +112,9 @@ Signed-off-by: John Crispin <john@phrozen.org> + if (IS_ERR(led->rst)) + return ERR_PTR(-EINVAL); + ++ fwnode_property_read_string(child, "linux,default-trigger", ++ &led->cdev.default_trigger); ++ + led->cdev.brightness_set = reset_led_set; + ret = devm_of_led_classdev_register(&pdev->dev, np, &led->cdev); + if (ret < 0) |