Re: [PATCH v2 0/2] pinctrl: Intel Cherryview/Braswell support

Timur Tabi
2014-11-04T23:18:51Z

On 11/04/2014 04:56 PM, Timur Tabi wrote:
>
> > I'm
>> not sure how much of that code can be shared between DT and ACPI ATM, but
>> it looks like at least some of it can be shared.
>
> So ACPI does not support the concept if variable length properties?

Ah, I see that it does:

int acpi_dev_prop_read_array(struct acpi_device *adev, const char *propname,
enum dev_prop_type proptype, void *val,
size_t nval)
{
...
if (!val)
return obj->package.count;

If I pass NULL for 'val', it returns the number of items.

--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.