Re: [RESEND][PATCH v2 27/36] drivers: Add a generic helper to match device by fwnode handle

From: Rafael J. Wysocki
Date: Thu Apr 18 2019 - 10:40:06 EST


On Tue, Apr 16, 2019 at 12:53 PM Suzuki K Poulose
<suzuki.poulose@xxxxxxx> wrote:
>
> On 04/16/2019 11:48 AM, Rafael J. Wysocki wrote:
> > On Tue, Apr 16, 2019 at 12:39 PM Suzuki K Poulose
> > <suzuki.poulose@xxxxxxx> wrote:
> >>
> >> Make the device_fwnode_match() a generic helper to match device
> >> by fwnode handle for use with bus_find_device(). This will be
> >> also used by coresight.
> >>
> >> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> >> Cc: "Rafael J. Wysocki" <rafael@xxxxxxxxxx>
> >> Cc: linux-acpi@xxxxxxxxxxxxxxx
> >> Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
> >> ---
> >>
> >> Resending with linux-acpi in Cc, as requested by Rafael.
> >
> > Do any other patches in your series depend on this one?
>
> Yes, I do. But they are in the middle of a big series of changes and
> I don't expect this series to go into 5.2. So, if you plan to pull this
> please go ahead.

I would prefer the new exported function to return bool. With that
changed, I can apply the patch I think.