[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YrCOaW/K6muNnyRf@sirena.org.uk>
Date: Mon, 20 Jun 2022 16:12:41 +0100
From: Mark Brown <broonie@...nel.org>
To: Pierluigi Passaro <pierluigi.p@...iscite.com>
Cc: Alifer Willians de Moraes <alifer.m@...iscite.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Eran Matityahu <eran.m@...iscite.com>,
"festevam@...il.com" <festevam@...il.com>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
"nicoleotsuka@...il.com" <nicoleotsuka@...il.com>,
"patches@...nsource.cirrus.com" <patches@...nsource.cirrus.com>,
"perex@...ex.cz" <perex@...ex.cz>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"shengjiu.wang@...il.com" <shengjiu.wang@...il.com>,
"tiwai@...e.com" <tiwai@...e.com>,
"Xiubo.Lee@...il.com" <Xiubo.Lee@...il.com>
Subject: Re: [PATCH 3/4] ASoC: wm8904: extend device tree support
On Mon, Jun 20, 2022 at 02:32:17PM +0000, Pierluigi Passaro wrote:
> > > + - drc-cfg-regs: Default registers value for R40/41/42/43 (DRC)
> > > + The list must be (4 x num-drc-cfgs) entries long.
> > > + If absent or incomplete, DRC is disabled.
> > What is the purpose of having num-drc-cfgs? We can tell how large
> > drc-cfg-regs is so it just seems redundant.
> Can you please point me to any reference implementation doing this ?
of_property_read_variable_uX_array() should do what you want, you can
also use of_property_count_elems_of_size(). The main DT API header is
linux/of.h.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists