Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-23 Thread Lee Jones
> > To be frank, I've never known what the double const means. Care to > > enlighten? > > There's a nice table here: > > http://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning Okay, I get it. I think you're right, I'll make the change and see what

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-23 Thread Lee Jones
To be frank, I've never known what the double const means. Care to enlighten? There's a nice table here: http://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning Okay, I get it. I think you're right, I'll make the change and see what else

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-22 Thread Joe Perches
On Thu, 2014-05-22 at 17:08 +0100, Lee Jones wrote: > To be frank, I've never known what the double const means. Care to > enlighten? There's a nice table here: http://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning -- To unsubscribe from this list:

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-22 Thread Lee Jones
> > drivers/mfd/axp20x.c:159:3: > > warning: initialization discards ‘const’ qualifier from pointer target > > type > >.parent_supplies = axp20x_supplies, > [] > > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > [] > > @@ -140,7 +140,7 @@ static const struct regmap_irq_chip > >

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-22 Thread Joe Perches
On Thu, 2014-05-22 at 10:18 +0100, Lee Jones wrote: > drivers/mfd/axp20x.c:159:3: > warning: initialization discards ‘const’ qualifier from pointer target type >.parent_supplies = axp20x_supplies, [] > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c [] > @@ -140,7 +140,7 @@ static

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-22 Thread Joe Perches
On Thu, 2014-05-22 at 10:18 +0100, Lee Jones wrote: drivers/mfd/axp20x.c:159:3: warning: initialization discards ‘const’ qualifier from pointer target type .parent_supplies = axp20x_supplies, [] diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c [] @@ -140,7 +140,7 @@ static const

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-22 Thread Lee Jones
drivers/mfd/axp20x.c:159:3: warning: initialization discards ‘const’ qualifier from pointer target type .parent_supplies = axp20x_supplies, [] diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c [] @@ -140,7 +140,7 @@ static const struct regmap_irq_chip

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-22 Thread Joe Perches
On Thu, 2014-05-22 at 17:08 +0100, Lee Jones wrote: To be frank, I've never known what the double const means. Care to enlighten? There's a nice table here: http://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning -- To unsubscribe from this list: