Messages in this thread | | | Date | Mon, 20 Jun 2022 16:12:41 +0100 | From | Mark Brown <> | 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. [unhandled content-type:application/pgp-signature] | |