* [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
[parent not found: <20171204090723.4810-1-peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org>]
* Re: [PATCH] checks: fix sound-dai phandle with arg property check [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 0 siblings, 1 reply; 3+ messages in thread From: Rob Herring @ 2017-12-04 16:22 UTC (permalink / raw) To: Peter Rosin; +Cc: Devicetree Compiler, David Gibson, Jon Loeliger On Mon, Dec 4, 2017 at 3:07 AM, Peter Rosin <peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org> wrote: > The property is named "sound-dai", not "sound-dais". Indeed. Unfortunately, we've been inconsistent. > > Fixes: b3bbac02d5e3 ("checks: add phandle with arg property checks") > Signed-off-by: Peter Rosin <peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org> Reviewed-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@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... Some of the bindings treated #*-cells as optional with missing being treated as 0. IMO, we should fix all those cases because that's really the only way we can generically validate bindings. > BTW, I reviewed the other properties added by the fixed patch and found > no other similar spelling mistake. Thanks. Rob ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] checks: fix sound-dai phandle with arg property check 2017-12-04 16:22 ` Rob Herring @ 2017-12-05 0:32 ` David Gibson 0 siblings, 0 replies; 3+ messages in thread From: David Gibson @ 2017-12-05 0:32 UTC (permalink / raw) To: Rob Herring; +Cc: Peter Rosin, Devicetree Compiler, Jon Loeliger [-- Attachment #1: Type: text/plain, Size: 1380 bytes --] On Mon, Dec 04, 2017 at 10:22:19AM -0600, Rob Herring wrote: > On Mon, Dec 4, 2017 at 3:07 AM, Peter Rosin <peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org> wrote: > > The property is named "sound-dai", not "sound-dais". > > Indeed. Unfortunately, we've been inconsistent. > > > > > Fixes: b3bbac02d5e3 ("checks: add phandle with arg property checks") > > Signed-off-by: Peter Rosin <peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org> > > Reviewed-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Applied, thanks. > > > --- > > 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... > > Some of the bindings treated #*-cells as optional with missing being > treated as 0. IMO, we should fix all those cases because that's really > the only way we can generically validate bindings. > > > BTW, I reviewed the other properties added by the fixed patch and found > > no other similar spelling mistake. > > Thanks. > > Rob -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [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).