提交 eae7c98a 编写于 作者: G Geert Uytterhoeven 提交者: Jacek Anaszewski

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: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
上级 d4887af9
...@@ -86,7 +86,7 @@ static int create_gpio_led(const struct gpio_led *template, ...@@ -86,7 +86,7 @@ static int create_gpio_led(const struct gpio_led *template,
* still uses GPIO numbers. Ultimately we would like to get * still uses GPIO numbers. Ultimately we would like to get
* rid of this block completely. * rid of this block completely.
*/ */
unsigned long flags = 0; unsigned long flags = GPIOF_OUT_INIT_LOW;
/* skip leds that aren't available */ /* skip leds that aren't available */
if (!gpio_is_valid(template->gpio)) { if (!gpio_is_valid(template->gpio)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册