Skip to content

lib: string: add function strtolower()

Markus Mayer acpica-devel dri-devel linux-acpi linux-scsi lkml nouveau 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib: string: add function strtolower()include/linux/string.h lib/string.c+15 -06 replies
2/6drm/nouveau/core: make use of new strtolower() functiondrivers/gpu/drm/nouveau/nvkm/core/firmware.c+1 -64 replies
3/6ACPICA: make use of new strtolower() functiondrivers/acpi/acpica/utnonansi.c+1 -124 replies
4/6ACPI / device_sysfs: make use of new strtolower() functiondrivers/acpi/device_sysfs.c+1 -31 reply
5/6staging: speakup: replace spk_strlwr() with strtolower()drivers/staging/speakup/kobjects.c drivers/staging/speakup/main.c drivers/staging/speakup/speakup.h +1 more+2 -151 reply
6/6iscsi-target: replace iscsi_initiatorname_tolower() with strtolower()drivers/target/iscsi/iscsi_target_nego.c+1 -160 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchSamuel Thibault
1/6
2/6
3/6
4/6
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] lib: string: add function strtolower()

This series introduces a new generic function strtolower(), which converts strings to lowercase in-place, overwriting the original string. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this function. So, we replace several custom "strtolower" implementations with this new library function.

Another driver that also makes use of this function will be submitted upstream shortly, which prompted this whole exercise.

The changes made here have been compile-tested, but not tried out, due to lack of required hardware.

This series is based on v4.7-rc5.

Markus Mayer (6):
lib: string: add function strtolower()
drm/nouveau/core: make use of new strtolower() function
ACPICA: make use of new strtolower() function
ACPI / device_sysfs: make use of new strtolower() function
staging: speakup: replace spk_strlwr() with strtolower()
iscsi-target: replace iscsi_initiatorname_tolower() with strtolower()

 drivers/acpi/acpica/utnonansi.c              | 13 +------------
 drivers/acpi/device_sysfs.c                  |  4 +---
 drivers/gpu/drm/nouveau/nvkm/core/firmware.c |  7 +------
 drivers/staging/speakup/kobjects.c           |  2 +-
 drivers/staging/speakup/main.c               |  2 +-
 drivers/staging/speakup/speakup.h            |  1 -
 drivers/staging/speakup/varhandlers.c        | 12 ------------
 drivers/target/iscsi/iscsi_target_nego.c     | 17 +----------------
 include/linux/string.h                       |  1 +
 lib/string.c                                 | 14 ++++++++++++++
 10 files changed, 21 insertions(+), 52 deletions(-)
Signature · 1 line
2.7.4