Messages in this thread | | | Date | Tue, 12 Aug 2008 15:06:19 -0700 | From | David Brownell <> | Subject | Re: [PATCH] Make gpiochip label const |
| |
> From dbaryshkov@gmail.com Tue Aug 12 13:54:29 2008 > From: Dmitry Baryshkov <dbaryshkov@gmail.com> > To: linux-kernel@vger.kernel.org > Cc: Dmitry Baryshkov <dbaryshkov@gmail.com>, > David Brownell <dbrownell@users.sourceforge.net> > Subject: [PATCH] Make gpiochip label const > Date: Wed, 13 Aug 2008 00:39:48 +0400 > > Mark gpiochip label as a const char pointer. > > Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> > Cc: David Brownell <dbrownell@users.sourceforge.net>
Acked-By: David Brownell <dbrownell@users.sourceforge.net>
> --- > 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 6be061d..8ab874a 100644 > --- a/include/asm-generic/gpio.h > +++ b/include/asm-generic/gpio.h > @@ -58,7 +58,7 @@ struct module; > * is calculated by subtracting @base from the gpio number. > */ > struct gpio_chip { > - char *label; > + const char *label; > struct module *owner; > > int (*direction_input)(struct gpio_chip *chip, > -- > 1.5.6.3 >
| |