devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] checks: fix sound-dai phandle with arg property check
@ 2017-12-04  9:07 Peter Rosin
       [not found] ` <20171204090723.4810-1-peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rosin @ 2017-12-04  9:07 UTC (permalink / raw)
  To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA
  Cc: Peter Rosin, David Gibson, Jon Loeliger, Rob Herring

The property is named "sound-dai", not "sound-dais".

Fixes: b3bbac02d5e3 ("checks: add phandle with arg property checks")
Signed-off-by: Peter Rosin <peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org>
---
 checks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Hi!

I don't know if this needs more work? Maybe #sound-dai-cells is optional?
Maybe there's a lot of fall-out in the kernel? Anyway, "sound-dais" is
definitely not right...

BTW, I reviewed the other properties added by the fixed patch and found
no other similar spelling mistake.

Cheers,
Peter

diff --git a/checks.c b/checks.c
index f5bf5f9..334c2a4 100644
--- a/checks.c
+++ b/checks.c
@@ -1066,7 +1066,7 @@ WARNING_PROPERTY_PHANDLE_CELLS(phys, "phys", "#phy-cells");
 WARNING_PROPERTY_PHANDLE_CELLS(power_domains, "power-domains", "#power-domain-cells");
 WARNING_PROPERTY_PHANDLE_CELLS(pwms, "pwms", "#pwm-cells");
 WARNING_PROPERTY_PHANDLE_CELLS(resets, "resets", "#reset-cells");
-WARNING_PROPERTY_PHANDLE_CELLS(sound_dais, "sound-dais", "#sound-dai-cells");
+WARNING_PROPERTY_PHANDLE_CELLS(sound_dai, "sound-dai", "#sound-dai-cells");
 WARNING_PROPERTY_PHANDLE_CELLS(thermal_sensors, "thermal-sensors", "#thermal-sensor-cells");
 
 static bool prop_is_gpio(struct property *prop)
@@ -1269,7 +1269,7 @@ static struct check *check_table[] = {
 	&power_domains_property,
 	&pwms_property,
 	&resets_property,
-	&sound_dais_property,
+	&sound_dai_property,
 	&thermal_sensors_property,
 
 	&deprecated_gpio_property,
-- 
2.11.0

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

end of thread, other threads:[~2017-12-05  0:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04  9:07 [PATCH] checks: fix sound-dai phandle with arg property check Peter Rosin
     [not found] ` <20171204090723.4810-1-peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org>
2017-12-04 16:22   ` Rob Herring
2017-12-05  0:32     ` David Gibson

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).