public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Case-insensitive match_string and fwnode_is_compatible()
@ 2022-10-09 16:21 Soha Jin
  2022-10-09 16:21 ` [PATCH 1/3] string: add match_string_nocase() for case-insensitive match Soha Jin
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Soha Jin @ 2022-10-09 16:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Rafael J. Wysocki, Andy Shevchenko, Daniel Scally,
	Heikki Krogerus, Sakari Ailus, linux-kernel, Soha Jin

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-10-10  7:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-09 16:21 [PATCH 0/3] Case-insensitive match_string and fwnode_is_compatible() Soha Jin
2022-10-09 16:21 ` [PATCH 1/3] string: add match_string_nocase() for case-insensitive match Soha Jin
2022-10-09 18:24   ` Greg Kroah-Hartman
2022-10-10  3:02     ` Soha Jin
2022-10-10  6:24       ` 'Greg Kroah-Hartman'
2022-10-10  7:36         ` Soha Jin
2022-10-09 16:21 ` [PATCH 2/3] device property: add {device,fwnode}_property_match_string_nocase() Soha Jin
2022-10-09 18:25   ` Greg Kroah-Hartman
2022-10-09 18:40   ` kernel test robot
2022-10-09 18:40   ` kernel test robot
2022-10-09 16:21 ` [PATCH 3/3] device property: add fwnode_is_compatible() for compatible match Soha Jin
2022-10-09 18:26   ` Greg Kroah-Hartman
2022-10-09 18:24 ` [PATCH 0/3] Case-insensitive match_string and fwnode_is_compatible() Greg Kroah-Hartman
2022-10-10  3:07   ` Soha Jin
2022-10-10  6:26     ` 'Greg Kroah-Hartman'
2022-10-10  7:40       ` Soha Jin
2022-10-10  6:23 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox