gpio: make gpiochip label const
authorDmitry Baryshkov <[email protected]>
Thu, 16 Oct 2008 05:03:10 +0000 (22:03 -0700)
committerLinus Torvalds <[email protected]>
Thu, 16 Oct 2008 18:21:40 +0000 (11:21 -0700)
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]>
include/asm-generic/gpio.h

index 0f99ad38b012f93ef10ccb5b0f9105b4e7f8daab..2c5744b66decacac4b381f33080ab5964b03750b 100644 (file)
@@ -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;