public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] mfd: arizona: Fixup some formatting/white space errors
@ 2015-08-11  8:34 Charles Keepax
  2015-08-12  8:20 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Keepax @ 2015-08-11  8:34 UTC (permalink / raw)
  To: lee.jones; +Cc: sameo, patches, linux-kernel

Clear out a few checkpatch warnings and white space errors.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/mfd/arizona-core.c |   33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index 375b954..08b36fa 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -30,7 +30,7 @@
 
 #include "arizona.h"
 
-static const char *wm5102_core_supplies[] = {
+static const char * const wm5102_core_supplies[] = {
 	"AVDD",
 	"DBVDD1",
 };
@@ -148,7 +148,7 @@ static irqreturn_t arizona_overclocked(int irq, void *data)
 	struct arizona *arizona = data;
 	unsigned int val[3];
 	int ret;
-	
+
 	ret = regmap_bulk_read(arizona->regmap, ARIZONA_INTERRUPT_RAW_STATUS_6,
 			       &val[0], 3);
 	if (ret != 0) {
@@ -567,9 +567,8 @@ static int arizona_runtime_resume(struct device *dev)
 		break;
 	default:
 		ret = arizona_wait_for_boot(arizona);
-		if (ret != 0) {
+		if (ret != 0)
 			goto err;
-		}
 
 		if (arizona->external_dcvdd) {
 			ret = regmap_update_bits(arizona->regmap,
@@ -776,8 +775,8 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
 
 	ret = of_property_read_u32_array(arizona->dev->of_node,
 					 "wlf,gpio-defaults",
-					 arizona->pdata.gpio_defaults,
-					 ARRAY_SIZE(arizona->pdata.gpio_defaults));
+					 pdata->gpio_defaults,
+					 ARRAY_SIZE(pdata->gpio_defaults));
 	if (ret >= 0) {
 		/*
 		 * All values are literal except out of range values
@@ -785,11 +784,11 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
 		 * data which uses 0 as chip default and out of range
 		 * as zero.
 		 */
-		for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) {
-			if (arizona->pdata.gpio_defaults[i] > 0xffff)
-				arizona->pdata.gpio_defaults[i] = 0;
-			else if (arizona->pdata.gpio_defaults[i] == 0)
-				arizona->pdata.gpio_defaults[i] = 0x10000;
+		for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) {
+			if (pdata->gpio_defaults[i] > 0xffff)
+				pdata->gpio_defaults[i] = 0;
+			else if (pdata->gpio_defaults[i] == 0)
+				pdata->gpio_defaults[i] = 0x10000;
 		}
 	} else {
 		dev_err(arizona->dev, "Failed to parse GPIO defaults: %d\n",
@@ -798,20 +797,20 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
 
 	of_property_for_each_u32(arizona->dev->of_node, "wlf,inmode", prop,
 				 cur, val) {
-		if (count == ARRAY_SIZE(arizona->pdata.inmode))
+		if (count == ARRAY_SIZE(pdata->inmode))
 			break;
 
-		arizona->pdata.inmode[count] = val;
+		pdata->inmode[count] = val;
 		count++;
 	}
 
 	count = 0;
 	of_property_for_each_u32(arizona->dev->of_node, "wlf,dmic-ref", prop,
 				 cur, val) {
-		if (count == ARRAY_SIZE(arizona->pdata.dmic_ref))
+		if (count == ARRAY_SIZE(pdata->dmic_ref))
 			break;
 
-		arizona->pdata.dmic_ref[count] = val;
+		pdata->dmic_ref[count] = val;
 		count++;
 	}
 
@@ -839,7 +838,7 @@ static const struct mfd_cell early_devs[] = {
 	{ .name = "arizona-ldo1" },
 };
 
-static const char *wm5102_supplies[] = {
+static const char * const wm5102_supplies[] = {
 	"MICVDD",
 	"DBVDD2",
 	"DBVDD3",
@@ -882,7 +881,7 @@ static const struct mfd_cell wm5110_devs[] = {
 	},
 };
 
-static const char *wm8997_supplies[] = {
+static const char * const wm8997_supplies[] = {
 	"MICVDD",
 	"DBVDD2",
 	"CPVDD",
-- 
1.7.2.5


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

* Re: [PATCH RESEND] mfd: arizona: Fixup some formatting/white space errors
  2015-08-11  8:34 [PATCH RESEND] mfd: arizona: Fixup some formatting/white space errors Charles Keepax
@ 2015-08-12  8:20 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2015-08-12  8:20 UTC (permalink / raw)
  To: Charles Keepax; +Cc: sameo, patches, linux-kernel

On Tue, 11 Aug 2015, Charles Keepax wrote:

> Clear out a few checkpatch warnings and white space errors.
> 
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> ---
>  drivers/mfd/arizona-core.c |   33 ++++++++++++++++-----------------
>  1 files changed, 16 insertions(+), 17 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
> index 375b954..08b36fa 100644
> --- a/drivers/mfd/arizona-core.c
> +++ b/drivers/mfd/arizona-core.c
> @@ -30,7 +30,7 @@
>  
>  #include "arizona.h"
>  
> -static const char *wm5102_core_supplies[] = {
> +static const char * const wm5102_core_supplies[] = {
>  	"AVDD",
>  	"DBVDD1",
>  };
> @@ -148,7 +148,7 @@ static irqreturn_t arizona_overclocked(int irq, void *data)
>  	struct arizona *arizona = data;
>  	unsigned int val[3];
>  	int ret;
> -	
> +
>  	ret = regmap_bulk_read(arizona->regmap, ARIZONA_INTERRUPT_RAW_STATUS_6,
>  			       &val[0], 3);
>  	if (ret != 0) {
> @@ -567,9 +567,8 @@ static int arizona_runtime_resume(struct device *dev)
>  		break;
>  	default:
>  		ret = arizona_wait_for_boot(arizona);
> -		if (ret != 0) {
> +		if (ret != 0)
>  			goto err;
> -		}
>  
>  		if (arizona->external_dcvdd) {
>  			ret = regmap_update_bits(arizona->regmap,
> @@ -776,8 +775,8 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
>  
>  	ret = of_property_read_u32_array(arizona->dev->of_node,
>  					 "wlf,gpio-defaults",
> -					 arizona->pdata.gpio_defaults,
> -					 ARRAY_SIZE(arizona->pdata.gpio_defaults));
> +					 pdata->gpio_defaults,
> +					 ARRAY_SIZE(pdata->gpio_defaults));
>  	if (ret >= 0) {
>  		/*
>  		 * All values are literal except out of range values
> @@ -785,11 +784,11 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
>  		 * data which uses 0 as chip default and out of range
>  		 * as zero.
>  		 */
> -		for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) {
> -			if (arizona->pdata.gpio_defaults[i] > 0xffff)
> -				arizona->pdata.gpio_defaults[i] = 0;
> -			else if (arizona->pdata.gpio_defaults[i] == 0)
> -				arizona->pdata.gpio_defaults[i] = 0x10000;
> +		for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) {
> +			if (pdata->gpio_defaults[i] > 0xffff)
> +				pdata->gpio_defaults[i] = 0;
> +			else if (pdata->gpio_defaults[i] == 0)
> +				pdata->gpio_defaults[i] = 0x10000;
>  		}
>  	} else {
>  		dev_err(arizona->dev, "Failed to parse GPIO defaults: %d\n",
> @@ -798,20 +797,20 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
>  
>  	of_property_for_each_u32(arizona->dev->of_node, "wlf,inmode", prop,
>  				 cur, val) {
> -		if (count == ARRAY_SIZE(arizona->pdata.inmode))
> +		if (count == ARRAY_SIZE(pdata->inmode))
>  			break;
>  
> -		arizona->pdata.inmode[count] = val;
> +		pdata->inmode[count] = val;
>  		count++;
>  	}
>  
>  	count = 0;
>  	of_property_for_each_u32(arizona->dev->of_node, "wlf,dmic-ref", prop,
>  				 cur, val) {
> -		if (count == ARRAY_SIZE(arizona->pdata.dmic_ref))
> +		if (count == ARRAY_SIZE(pdata->dmic_ref))
>  			break;
>  
> -		arizona->pdata.dmic_ref[count] = val;
> +		pdata->dmic_ref[count] = val;
>  		count++;
>  	}
>  
> @@ -839,7 +838,7 @@ static const struct mfd_cell early_devs[] = {
>  	{ .name = "arizona-ldo1" },
>  };
>  
> -static const char *wm5102_supplies[] = {
> +static const char * const wm5102_supplies[] = {
>  	"MICVDD",
>  	"DBVDD2",
>  	"DBVDD3",
> @@ -882,7 +881,7 @@ static const struct mfd_cell wm5110_devs[] = {
>  	},
>  };
>  
> -static const char *wm8997_supplies[] = {
> +static const char * const wm8997_supplies[] = {
>  	"MICVDD",
>  	"DBVDD2",
>  	"CPVDD",

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

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

end of thread, other threads:[~2015-08-12  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-11  8:34 [PATCH RESEND] mfd: arizona: Fixup some formatting/white space errors Charles Keepax
2015-08-12  8:20 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox