Skip to content

Commit

Permalink
gpio: make gpiochip label const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Baryshkov authored and Linus Torvalds committed Oct 16, 2008
1 parent 1716b0f commit 4fd5463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-generic/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4fd5463

Please sign in to comment.