Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1456897 > unrolled thread

[PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const

Started byAxel Lin <axel.lin@ingics.com>
First post2016-08-05 08:50 +0200
Last post2016-08-09 15:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const Axel Lin <axel.lin@ingics.com> - 2016-08-05 08:50 +0200
    Re: [PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static  const Lee Jones <lee.jones@linaro.org> - 2016-08-09 15:10 +0200

#1456897 — [PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const

FromAxel Lin <axel.lin@ingics.com>
Date2016-08-05 08:50 +0200
Subject[PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const
Message-ID<s2H7b-3Xz-5@gated-at.bofh.it>
It's only used in this driver and never get modified, make it static const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/mfd/altera-a10sr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/altera-a10sr.c b/drivers/mfd/altera-a10sr.c
index c05aa4f..40ed65e 100644
--- a/drivers/mfd/altera-a10sr.c
+++ b/drivers/mfd/altera-a10sr.c
@@ -94,7 +94,7 @@ static bool altr_a10sr_reg_volatile(struct device *dev, unsigned int reg)
 	}
 }
 
-const struct regmap_config altr_a10sr_regmap_config = {
+static const struct regmap_config altr_a10sr_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 
-- 
2.7.4

[toc] | [next] | [standalone]


#1458725 — Re: [PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const

FromLee Jones <lee.jones@linaro.org>
Date2016-08-09 15:10 +0200
SubjectRe: [PATCH] mfd: altera-a10sr: Make altr_a10sr_regmap_config static const
Message-ID<s4eX7-7Yv-1@gated-at.bofh.it>
In reply to#1456897
On Fri, 05 Aug 2016, Axel Lin wrote:

> It's only used in this driver and never get modified, make it static const.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/mfd/altera-a10sr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

> diff --git a/drivers/mfd/altera-a10sr.c b/drivers/mfd/altera-a10sr.c
> index c05aa4f..40ed65e 100644
> --- a/drivers/mfd/altera-a10sr.c
> +++ b/drivers/mfd/altera-a10sr.c
> @@ -94,7 +94,7 @@ static bool altr_a10sr_reg_volatile(struct device *dev, unsigned int reg)
>  	}
>  }
>  
> -const struct regmap_config altr_a10sr_regmap_config = {
> +static const struct regmap_config altr_a10sr_regmap_config = {
>  	.reg_bits = 8,
>  	.val_bits = 8,
>  

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web