device property: Add fwnode_name_eq()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 6 Nov 2023 07:31:41 +0000 (09:31 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 4 Dec 2023 09:37:46 +0000 (10:37 +0100)
commita9c8c738066b7ba9e208cfc3200a6f60593982b4
treeccbaee1d325fd618998bd5ab2fef71dde207de95
parent03cc7fefbb09dd70f3b21d127784879fac0bbf00
device property: Add fwnode_name_eq()

Add fwnode_name_eq() to implement the functionality of of_node_name_eq()
on fwnode property API. The same convention of ending the comparison at
'@' (besides NUL) is applied on also both ACPI and swnode. The function
is intended for comparing unit address-less node names on DT and firmware
or swnodes compliant with DT bindings.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/base/property.c
include/linux/property.h