projects/linux·commit 4fd5463c

gpio: make gpiochip label const

4fd5463c · Dmitry Baryshkov <[email protected]> · 2008-10-15 22:03:10 -07:00

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 <[email protected]>
Acked-by: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
4fd5463c43d75ec919e27abdcfde1b199c19541e
Parents
1716b0fe

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/asm-generic/gpio.hmodified+1−1View file

include/asm-generic/gpio.h

View file
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index 0f99ad3..2c5744b 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;