mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <patrice.chotard@st.com>
To: <linux-kernel@vger.kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	<srinivas.kandagatla@linaro.com>,
	<linux-arm-kernel@lists.infradead.org>
Cc: <kernel@stlinux.com>, <patrice.chotard@st.com>
Subject: [PATCH 4/4] ARM: dts: STiH41x-b2020: Update gpio specifier
Date: Wed, 10 Aug 2016 15:13:01 +0200	[thread overview]
Message-ID: <1470834781-23232-5-git-send-email-patrice.chotard@st.com> (raw)
In-Reply-To: <1470834781-23232-1-git-send-email-patrice.chotard@st.com>

From: Patrice Chotard <patrice.chotard@st.com>

- Remove useless gpio-cells
- Update second parameter by using GPIO_ACTIVE_HIGH/LOW
  instead of hardcoded value

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---
 arch/arm/boot/dts/stih41x-b2020.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/stih41x-b2020.dtsi b/arch/arm/boot/dts/stih41x-b2020.dtsi
index 487d7d8..322e0e9 100644
--- a/arch/arm/boot/dts/stih41x-b2020.dtsi
+++ b/arch/arm/boot/dts/stih41x-b2020.dtsi
@@ -7,6 +7,7 @@
  * publishhed by the Free Software Foundation.
  */
 #include "stih41x-b2020x.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
 	memory{
 		device_type = "memory";
@@ -30,13 +31,12 @@
 		leds {
 			compatible	= "gpio-leds";
 			red {
-				#gpio-cells = <1>;
 				label	= "Front Panel LED";
-				gpios	= <&pio4 1>;
+				gpios	= <&pio4 1 GPIO_ACTIVE_HIGH>;
 				linux,default-trigger	= "heartbeat";
 			};
 			green {
-				gpios	= <&pio4 7>;
+				gpios	= <&pio4 7 GPIO_ACTIVE_HIGH>;
 				default-state = "off";
 			};
 		};
-- 
1.9.1

  parent reply	other threads:[~2016-08-10 18:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-10 13:12 [PATCH 0/4] STi: Allow to use gpio specifier's second parameter patrice.chotard
2016-08-10 13:12 ` [PATCH 1/4] pinctrl: st: Use second parameter to gpio specifier patrice.chotard
2016-08-11 14:07   ` Linus Walleij
2016-08-10 13:12 ` [PATCH 2/4] ARM: dts: STiH407-pinctrl: Update gpio-cells to 2 patrice.chotard
2016-08-11 14:08   ` Linus Walleij
2016-08-10 13:13 ` [PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier patrice.chotard
2016-08-11 14:09   ` Linus Walleij
2016-08-10 13:13 ` patrice.chotard [this message]
2016-08-11 14:09   ` [PATCH 4/4] ARM: dts: STiH41x-b2020: " Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470834781-23232-5-git-send-email-patrice.chotard@st.com \
    --to=patrice.chotard@st.com \
    --cc=kernel@stlinux.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srinivas.kandagatla@linaro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®