All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels
@ 2016-01-22 17:49 Colin King
  2016-01-23 16:34 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2016-01-22 17:49 UTC (permalink / raw)
  To: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald, Jacob Pan, Krzysztof Kozlowski, linux-iio
  Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

duplicate const can be removed, it is redundant. Found by static
analysis using smatch.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/iio/adc/axp288_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
index 0c904ed..7fd2494 100644
--- a/drivers/iio/adc/axp288_adc.c
+++ b/drivers/iio/adc/axp288_adc.c
@@ -46,7 +46,7 @@ struct axp288_adc_info {
 	struct regmap *regmap;
 };
 
-static const struct iio_chan_spec const axp288_adc_channels[] = {
+static const struct iio_chan_spec axp288_adc_channels[] = {
 	{
 		.indexed = 1,
 		.type = IIO_TEMP,
-- 
2.7.0.rc3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels
  2016-01-22 17:49 [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels Colin King
@ 2016-01-23 16:34 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2016-01-23 16:34 UTC (permalink / raw)
  To: Colin King, Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald,
	Jacob Pan, Krzysztof Kozlowski, linux-iio
  Cc: linux-kernel

On 22/01/16 17:49, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> duplicate const can be removed, it is redundant. Found by static
> analysis using smatch.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied, thanks,

Jonathan
> ---
>  drivers/iio/adc/axp288_adc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
> index 0c904ed..7fd2494 100644
> --- a/drivers/iio/adc/axp288_adc.c
> +++ b/drivers/iio/adc/axp288_adc.c
> @@ -46,7 +46,7 @@ struct axp288_adc_info {
>  	struct regmap *regmap;
>  };
>  
> -static const struct iio_chan_spec const axp288_adc_channels[] = {
> +static const struct iio_chan_spec axp288_adc_channels[] = {
>  	{
>  		.indexed = 1,
>  		.type = IIO_TEMP,
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-23 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-22 17:49 [PATCH] iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels Colin King
2016-01-23 16:34 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.