提交 4fd5463c 编写于 作者: D Dmitry Baryshkov 提交者: Linus Torvalds

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: NDmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 1716b0fe
...@@ -61,7 +61,7 @@ struct module; ...@@ -61,7 +61,7 @@ struct module;
* is calculated by subtracting @base from the gpio number. * is calculated by subtracting @base from the gpio number.
*/ */
struct gpio_chip { struct gpio_chip {
char *label; const char *label;
struct device *dev; struct device *dev;
struct module *owner; struct module *owner;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册