Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459394 > unrolled thread

[PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier

Started by<patrice.chotard@st.com>
First post2016-08-10 20:20 +0200
Last post2016-08-10 20:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier <patrice.chotard@st.com> - 2016-08-10 20:20 +0200

#1459394 — [PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier

From<patrice.chotard@st.com>
Date2016-08-10 20:20 +0200
Subject[PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier
Message-ID<s4GgI-79-125@gated-at.bofh.it>
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/stih418-b2199.dts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/stih418-b2199.dts b/arch/arm/boot/dts/stih418-b2199.dts
index 772d2bb..24e98a9 100644
--- a/arch/arm/boot/dts/stih418-b2199.dts
+++ b/arch/arm/boot/dts/stih418-b2199.dts
@@ -8,6 +8,7 @@
  */
 /dts-v1/;
 #include "stih418.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
 	model = "STiH418 B2199";
 	compatible = "st,stih418-b2199", "st,stih418";
@@ -35,14 +36,12 @@
 		leds {
 			compatible = "gpio-leds";
 			red {
-				#gpio-cells = <2>;
 				label = "Front Panel LED";
-				gpios = <&pio4 1 0>;
+				gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
 				linux,default-trigger = "heartbeat";
 			};
 			green {
-				#gpio-cells = <2>;
-				gpios = <&pio1 3 0>;
+				gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
 				default-state = "off";
 			};
 		};
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web