diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-10-16 01:03:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:40 -0400 |
commit | 4fd5463c43d75ec919e27abdcfde1b199c19541e (patch) | |
tree | c9cbc30718184ebc52a912786c4f9856f00bddbb | |
parent | 1716b0fea36c2be628440c1050182a1a1e9caae7 (diff) |
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>
-rw-r--r-- | include/asm-generic/gpio.h | 2 |
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; | |||
61 | * is calculated by subtracting @base from the gpio number. | 61 | * is calculated by subtracting @base from the gpio number. |
62 | */ | 62 | */ |
63 | struct gpio_chip { | 63 | struct gpio_chip { |
64 | char *label; | 64 | const char *label; |
65 | struct device *dev; | 65 | struct device *dev; |
66 | struct module *owner; | 66 | struct module *owner; |
67 | 67 | ||