summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-10-16 07:03:10 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 20:21:40 +0200
commit4fd5463c43d75ec919e27abdcfde1b199c19541e (patch)
treec9cbc30718184ebc52a912786c4f9856f00bddbb /include/asm-generic
parentrtc-ds1672 new style driver (diff)
downloadlinux-4fd5463c43d75ec919e27abdcfde1b199c19541e.tar.xz
linux-4fd5463c43d75ec919e27abdcfde1b199c19541e.zip
gpio: make gpiochip label const
Mark gpiochip label as a const char pointer. Fixes things like arch/arm/common/scoop.c: In function `scoop_probe': arch/arm/common/scoop.c:250: warning: assignment discards qualifiers from pointer target type Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/gpio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index 0f99ad38b012..2c5744b66dec 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -61,7 +61,7 @@ struct module;
* is calculated by subtracting @base from the gpio number.
*/
struct gpio_chip {
- char *label;
+ const char *label;
struct device *dev;
struct module *owner;