[alsa-devel] [PATCH 1/6] device property: Add new array helper

Rafael J. Wysocki rafael at kernel.org
Tue May 28 19:01:38 CEST 2019


On Tue, May 28, 2019 at 5:43 PM Charles Keepax
<ckeepax at opensource.cirrus.com> wrote:
>
> It is fairly common to want to read an integer array property
> that is composed of an unknown number of fixed size integer
> groups. For example, say each group consists of three values
> which correspond to the settings for one input on the device
> and the driver supports several chips with different numbers
> of inputs.
>
> Add a new helper function to provide this functionality, it
> differs for the existing helpers in that it allows reading a
> smaller number of values than the full array size and checks
> that the number of values read is a multiple of the group size.

As a rule, you need also CC all of the device property framework
changes to linux-acpi at vger.kernel.org, so please resend the series
with that taken into account.

Thanks!


More information about the Alsa-devel mailing list