lkml.org 
[lkml]   [2019]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 0/3] device property: fwnode_is_compatible() helper
On Wed, Mar 27, 2019 at 6:43 PM Heikki Krogerus
<heikki.krogerus@linux.intel.com> wrote:
>
> Hi,
>
> Basically the helper is just a generic version of the function
> of_device_is_compatible() that should work also with ACPI and
> software nodes.
>
> As the first user for the helper, I'm converting in this series the
> USB role switch code to expect the "compatible" property to have the
> value "usb-role-switch" instead of expecting a boolean property named
> "usb-role-switch". I'm doing the same for the USB Type-C mux code.
>

FWIW,
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

> thanks,
>
> Heikki Krogerus (3):
> device property: Add fwnode_is_compatible() and device_is_compatible()
> helpers
> usb: roles: Use the "compatible" property instead of a boolean
> property
> usb: typec: mux: Use the "compatible" property instead of a boolean
> property
>
> drivers/base/property.c | 35 +++++++++++++++++++++++++++++++++++
> drivers/usb/roles/class.c | 2 +-
> drivers/usb/typec/mux.c | 8 ++------
> include/linux/property.h | 3 +++
> 4 files changed, 41 insertions(+), 7 deletions(-)
>
> --
> 2.20.1
>


--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2019-03-28 10:07    [W:0.787 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site