projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4887af
)
leds: gpio: Use GPIOF_OUT_INIT_LOW instead of hardcoded zero
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Fri, 19 Feb 2016 09:52:34 +0000
(10:52 +0100)
committer
Jacek Anaszewski
<j.anaszewski@samsung.com>
Mon, 14 Mar 2016 08:22:21 +0000
(09:22 +0100)
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>
drivers/leds/leds-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-gpio.c
b/drivers/leds/leds-gpio.c
index 5883dede34238862c8cbc8871240aa93f93ab780..61143f55597e42f9b45fe4efe33a1c51614b22b4 100644
(file)
--- 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,
* still uses GPIO numbers. Ultimately we would like to get
* rid of this block completely.
*/
- unsigned long flags =
0
;
+ unsigned long flags =
GPIOF_OUT_INIT_LOW
;
/* skip leds that aren't available */
if (!gpio_is_valid(template->gpio)) {