devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: leds: lm3630a: Fix the example compilation
@ 2019-10-31 13:48 Maxime Ripard
  2019-11-05 15:41 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2019-10-31 13:48 UTC (permalink / raw)
  To: Mark Rutland, Rob Herring, Frank Rowand, lee.jones,
	daniel.thompson, jingoohan1, jacek.anaszewski, pavel, dmurphy
  Cc: linux-leds, devicetree, Maxime Ripard, Andreas Kemnade

Commit ae92365cdd75 ("dt-bindings: backlight: lm3630a: Add enable-gpios to
describe HWEN pin") introduced in the example a GPIO flag that isn't
declared anywhere, resulting in a compilation breakage when running the
validation tools. Add the proper define.

Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Lee Jones <lee.jones@linaro.org>
Fixes: ae92365cdd75 ("dt-bindings: backlight: lm3630a: Add enable-gpios to describe HWEN pin")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
 .../devicetree/bindings/leds/backlight/lm3630a-backlight.yaml   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml
index c8470628fe02..72fc6f7ef90a 100644
--- a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml
+++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml
@@ -93,6 +93,8 @@ additionalProperties: false
 
 examples:
   - |
+    #include <dt-bindings/gpio/gpio.h>
+
     i2c {
         #address-cells = <1>;
         #size-cells = <0>;
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-11  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31 13:48 [PATCH] dt-bindings: leds: lm3630a: Fix the example compilation Maxime Ripard
2019-11-05 15:41 ` Rob Herring
2019-11-11  9:56   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).