diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2018-08-08 09:56:49 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2018-08-08 09:56:49 +0200 |
commit | 4017c528ca9e0fda8eec87ec0cbc93fabfa53530 (patch) | |
tree | ab7d831e3c61e638b62b57e09f7b31baac697b9c /target/linux/generic/pending-4.4/085-0001-leds-leds-gpio-Set-of_node-for-created-LED-devices.patch | |
parent | e3ab280e47000aee3dc0ea916bcb656490e9839d (diff) | |
download | upstream-4017c528ca9e0fda8eec87ec0cbc93fabfa53530.tar.gz upstream-4017c528ca9e0fda8eec87ec0cbc93fabfa53530.tar.bz2 upstream-4017c528ca9e0fda8eec87ec0cbc93fabfa53530.zip |
kernel: remove linux 4.4 support
No targets are using it anymore
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/generic/pending-4.4/085-0001-leds-leds-gpio-Set-of_node-for-created-LED-devices.patch')
-rw-r--r-- | target/linux/generic/pending-4.4/085-0001-leds-leds-gpio-Set-of_node-for-created-LED-devices.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/target/linux/generic/pending-4.4/085-0001-leds-leds-gpio-Set-of_node-for-created-LED-devices.patch b/target/linux/generic/pending-4.4/085-0001-leds-leds-gpio-Set-of_node-for-created-LED-devices.patch deleted file mode 100644 index f60b1fc16b..0000000000 --- a/target/linux/generic/pending-4.4/085-0001-leds-leds-gpio-Set-of_node-for-created-LED-devices.patch +++ /dev/null @@ -1,53 +0,0 @@ -From bff23714bc36a1322d0f14519022df0d1a4b21f3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> -Date: Fri, 8 Jul 2016 14:53:38 +0200 -Subject: [PATCH] leds: leds-gpio: Set of_node for created LED devices -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -When working with Device Tree we iterate over children of "gpio-leds" -compatible node and create LED device for each of them. We take care of -all common DT properties (label, default trigger, state, etc.), however -some triggers may want to support more of them. - -It could be useful for timer trigger to support setting delay on/off -values with Device Tree property. Or for transient trigger to support -e.g. duration property. - -We obviously should handle such properties in triggers, not in generic -code. To let trigger drivers read properties from DT node we need to set -of_node to point the relevant node. This change allows using all kind of -of helpers in e.g. "activate" callbacks. - -Signed-off-by: Rafał Miłecki <zajec5@gmail.com> -Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> ---- - drivers/leds/leds-gpio.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - ---- a/drivers/leds/leds-gpio.c -+++ b/drivers/leds/leds-gpio.c -@@ -182,6 +182,7 @@ static struct gpio_leds_priv *gpio_leds_ - return ERR_PTR(-ENOMEM); - - device_for_each_child_node(dev, child) { -+ struct gpio_led_data *led_dat = &priv->leds[priv->num_leds]; - struct gpio_led led = {}; - const char *state = NULL; - -@@ -220,12 +221,12 @@ static struct gpio_leds_priv *gpio_leds_ - if (fwnode_property_present(child, "retain-state-suspended")) - led.retain_state_suspended = 1; - -- ret = create_gpio_led(&led, &priv->leds[priv->num_leds], -- dev, NULL); -+ ret = create_gpio_led(&led, led_dat, dev, NULL); - if (ret < 0) { - fwnode_handle_put(child); - goto err; - } -+ led_dat->cdev.dev->of_node = np; - priv->num_leds++; - } - |