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

From: Andy Shevchenko
Date: Mon Oct 10 2022 - 02:23:55 EST


On Mon, Oct 10, 2022 at 12:21:52AM +0800, Soha Jin wrote:
> 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.

Let's ask Rob about usage of case-insensitive comparator for compatible
strings.

So, why do we have such in the OF code and do we really need it in the modern
world?

--
With Best Regards,
Andy Shevchenko