Re: [PATCH 3/4] ASoC: wm8904: extend device tree support

From: Mark Brown
Date: Mon Jun 20 2022 - 11:20:27 EST


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.

Attachment: signature.asc
Description: PGP signature