aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-02-19 04:52:34 -0500
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-03-14 04:22:21 -0400
commiteae7c98acd13b35bc37608a430086b417b1150fe (patch)
tree5c5d374b21bd285e61d850fff86b85038565ccb2 /drivers/leds
parentd4887af9c2b6ab550516f14106133a1e436c0712 (diff)
leds: gpio: Use GPIOF_OUT_INIT_LOW instead of hardcoded zero
Use the GPIO flag definition instead of a numeric literal, so the casual reader grepping for GPIOF_ will find the GPIO flags used. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 5883dede3423..61143f55597e 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -86,7 +86,7 @@ static int create_gpio_led(const struct gpio_led *template,
86 * still uses GPIO numbers. Ultimately we would like to get 86 * still uses GPIO numbers. Ultimately we would like to get
87 * rid of this block completely. 87 * rid of this block completely.
88 */ 88 */
89 unsigned long flags = 0; 89 unsigned long flags = GPIOF_OUT_INIT_LOW;
90 90
91 /* skip leds that aren't available */ 91 /* skip leds that aren't available */
92 if (!gpio_is_valid(template->gpio)) { 92 if (!gpio_is_valid(template->gpio)) {