Skip to content

lib/string: introduce match_string() helper

Andy Shevchenko linux-pm lkml 3 versions – In review

Get series with b4
b4 am 1453986865-133572-1-git-send-email-andriy.shevchenko@linux.intel.com

Versions newest first · linked by author and title

  1. v4 Latest9 patches 5 repliesIn review
  2. v39 patches 4 repliesSuperseded
  3. v18 patches 17 repliesSuperseded

Changes in v4 from the cover letter

- rebase on top of latest linux-next
- add Rafael's Ack

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9lib/string: introduce match_string() helperinclude/linux/string.h lib/string.c+28 -03 replies
2/9device property: convert to use match_string() helperdrivers/base/property.c+2 -80 replies
3/9pinctrl: convert to use match_string() helperdrivers/pinctrl/pinmux.c+3 -102 replies
4/9drm/edid: convert to use match_string() helperdrivers/gpu/drm/drm_edid_load.c+6 -110 replies
5/9power: charger_manager: convert to use match_string() helperdrivers/power/charger-manager.c+4 -230 replies
6/9power: ab8500: convert to use match_string() helperdrivers/power/ab8500_btemp.c drivers/power/ab8500_charger.c drivers/power/ab8500_fg.c +1 more+20 -400 replies
7/9ata: hpt366: convert to use match_string() helperdrivers/ata/pata_hpt366.c+5 -80 replies
8/9ide: hpt366: convert to use match_string() helperdrivers/ide/hpt366.c+2 -70 replies
9/9usb: common: convert to use match_string() helperdrivers/usb/common/common.c+8 -140 replies

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchLinus WalleijTejun HeoMika WesterbergRafael J. Wysocki
1/9
2/9R-b A-b
3/9A-b
4/9
5/9
6/9A-b
7/9A-b
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/9] lib/string: introduce match_string() helper

There are users of a simple string matching in the array. Let's do a common helper for that.

Several users are updated in the series.

The series is compile tested.

There is still a question what function should return. There are variants:
-1, -EINVAL, -ENODATA, something else?

Since v3:
- rebase on top of latest linux-next
- add Rafael's Ack

Since v2:
- slightly modify implementation of the helper:
- rename len -> n in prototype (Sergey)
- move to for-loop (Rasmus)
- change 0 -> -1 to iterate over NULL-terminated arrays (Rasmus)
- add patch 9 from Heikki
- append tags

Since v1:
- convert few more users to get helper useful

Andy Shevchenko (8):
lib/string: introduce match_string() helper
device property: convert to use match_string() helper
pinctrl: convert to use match_string() helper drm/edid: convert to use match_string() helper
power: charger_manager: convert to use match_string() helper
power: ab8500: convert to use match_string() helper
ata: hpt366: convert to use match_string() helper
ide: hpt366: convert to use match_string() helper

Heikki Krogerus (1):
usb: common: convert to use match_string() helper

 drivers/ata/pata_hpt366.c       | 13 +++++--------
 drivers/base/property.c         | 10 ++--------
 drivers/gpu/drm/drm_edid_load.c | 17 ++++++-----------
 drivers/ide/hpt366.c            |  9 ++-------
 drivers/pinctrl/pinmux.c        | 13 +++----------
 drivers/power/ab8500_btemp.c    | 15 +++++----------
 drivers/power/ab8500_charger.c  | 16 +++++-----------
 drivers/power/ab8500_fg.c       | 15 +++++----------
 drivers/power/abx500_chargalg.c | 14 +++++---------
 drivers/power/charger-manager.c | 27 ++++-----------------------
 drivers/usb/common/common.c     | 22 ++++++++--------------
 include/linux/string.h          |  2 ++
 lib/string.c                    | 26 ++++++++++++++++++++++++++
 13 files changed, 78 insertions(+), 121 deletions(-)
Signature · 1 line
2.7.0.rc3