From: Geert Uytterhoeven Date: Fri, 19 Feb 2016 09:52:34 +0000 (+0100) Subject: leds: gpio: Use GPIOF_OUT_INIT_LOW instead of hardcoded zero X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eae7c98acd13b35bc37608a430086b417b1150fe;p=linux.git 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 Signed-off-by: Jacek Anaszewski --- diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 5883dede34238..61143f55597e4 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, * 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)) {