Use string_choices.h in the GPIO drivers and library. It has been tested on x86_64 and (semi-)compile tested over all. Andy Shevchenko (16): lib/string_helpers: Add missing header files to MAINTAINERS database lib/string_helpers: Split out string_choices.h lib/string_choices: Add str_high_low() helper lib/string_choices: Add str_input_output() helper gpiolib: Utilize helpers from string_choices.h gpio: adnp: Utilize helpers from string_choices.h gpio: brcmstb: Utilize helpers from string_choices.h gpio: crystalcove: Utilize helpers from string_choices.h gpio: grgpio: Utilize helpers from string_choices.h gpio: mvebu: Utilize helpers from string_choices.h gpio: pl061: Utilize helpers from string_choices.h gpio: stmpe: Utilize helpers from string_choices.h gpio: wcove: Utilize helpers from string_choices.h gpio: wm831x: Utilize helpers from string_choices.h gpio: wm8994: Utilize helpers from string_choices.h gpio: xra1403: Utilize helpers from string_choices.h MAINTAINERS | 3 ++ drivers/gpio/gpio-adnp.c | 24 ++++---------- drivers/gpio/gpio-brcmstb.c | 3 +- drivers/gpio/gpio-crystalcove.c | 17 +++++----- drivers/gpio/gpio-grgpio.c | 3 +- drivers/gpio/gpio-mvebu.c | 27 +++++++--------- drivers/gpio/gpio-pl061.c | 4 +-- drivers/gpio/gpio-stmpe.c | 19 +++++------ drivers/gpio/gpio-wcove.c | 15 ++++----- drivers/gpio/gpio-wm831x.c | 5 +-- drivers/gpio/gpio-wm8994.c | 6 ++-- drivers/gpio/gpio-xra1403.c | 5 +-- drivers/gpio/gpiolib-sysfs.c | 3 +- drivers/gpio/gpiolib.c | 13 ++++---- include/linux/string_choices.h | 56 +++++++++++++++++++++++++++++++++ include/linux/string_helpers.h | 26 +-------------- 16 files changed, 125 insertions(+), 104 deletions(-) create mode 100644 include/linux/string_choices.h -- 2.39.1