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

Rafael J. Wysocki
2014-11-04T22:26:23Z

On Tuesday, November 04, 2014 03:51:07 PM Timur Tabi wrote:
> On 11/04/2014 07:31 AM, Rafael J. Wysocki wrote:
> > Actually, it's better to pull the device-properties branch:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git device-properties
> >
> > because that contains the lastest changes. It will be rebased in the future,
> > though, so don't merge it into your "immutable" branches.
>
> I wish there were more examples on converting OF calls to device_prop*
> calls. I can't figure out how to obtain the size of a property without
> reading the property data. I think device_property_present() should be
> modified to take an optional size property, just like of_find_property().

What exactly do you need the size of the property alone for?

Rafael