summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2019-11-27 09:42:47 +0100
committerLinus Walleij <linus.walleij@linaro.org>2019-12-12 11:36:13 +0100
commitddd8891e01ecd87c81c04f6eb169be193868b884 (patch)
tree5d0e3ca60839ba0b2512ef4c7283b3bd70c3bb98 /drivers/gpio/gpiolib.h
parentLinux 5.5-rc1 (diff)
downloadlinux-ddd8891e01ecd87c81c04f6eb169be193868b884.tar.xz
linux-ddd8891e01ecd87c81c04f6eb169be193868b884.zip
gpiolib: Add GPIOCHIP_NAME definition
The string literal "gpiochip" is used in several places. Add a definition for it, and use it everywhere, to make sure everything stays in sync. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20191127084253.16356-2-geert+renesas@glider.be Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu> Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r--drivers/gpio/gpiolib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h
index ca9bc1e4803c..a4a759920faa 100644
--- a/drivers/gpio/gpiolib.h
+++ b/drivers/gpio/gpiolib.h
@@ -16,6 +16,8 @@
#include <linux/module.h>
#include <linux/cdev.h>
+#define GPIOCHIP_NAME "gpiochip"
+
/**
* struct gpio_device - internal state container for GPIO devices
* @id: numerical ID number for the GPIO chip