[PATCH 0/3] Case-insensitive match_string and fwnode_is_compatible()

From: Soha Jin
Date: Sun Oct 09 2022 - 12:22:54 EST


I am introducing these patches for the patch for ethernet driver which I
will send later.

In Patch 1, I abstract `match_string` to `__match_string` with a comparison
function, make the original name calling it with `strcmp` and add
`match_string_nocase` calling it with `strcasecmp`.

In Patch 2 & 3, I implement `{device,fwnode}_property_match_string_nocase`
and `fwnode_is_compatible` for compatible property matching.

Soha Jin (3):
string: add match_string_nocase() for case-insensitive match
device property: add {device,fwnode}_property_match_string_nocase()
device property: add fwnode_is_compatible() for compatible match

drivers/base/property.c | 92 ++++++++++++++++++++++++++++++++--------
include/linux/property.h | 13 ++++++
include/linux/string.h | 31 +++++++++++++-
lib/string_helpers.c | 10 +++--
4 files changed, 123 insertions(+), 23 deletions(-)

--
2.30.2