All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: syscon: Fix sparse warning
@ 2013-02-11 20:48 Fabio Estevam
  2013-02-11 20:48 ` [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix() Fabio Estevam
  2013-02-12 10:09 ` [PATCH 1/2] mfd: syscon: Fix sparse warning Samuel Ortiz
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2013-02-11 20:48 UTC (permalink / raw)
  To: sameo; +Cc: linux-kernel, Fabio Estevam, Dong Aisheng

From: Fabio Estevam <fabio.estevam@freescale.com>

Fix the following sparse warnings:

drivers/mfd/syscon.c:40:15: warning: symbol 'syscon_node_to_regmap' was not declared. Should it be static?
drivers/mfd/syscon.c:56:15: warning: symbol 'syscon_regmap_lookup_by_compatible' was not declared. Should it be static?
drivers/mfd/syscon.c:72:15: warning: symbol 'syscon_regmap_lookup_by_phandle' was not declared. Should it be static?

Cc: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/mfd/syscon.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 3f10591..61aea63 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -20,6 +20,7 @@
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
+#include <linux/mfd/syscon.h>
 
 static struct platform_driver syscon_driver;
 
-- 
1.7.9.5


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

* [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix()
  2013-02-11 20:48 [PATCH 1/2] mfd: syscon: Fix sparse warning Fabio Estevam
@ 2013-02-11 20:48 ` Fabio Estevam
  2013-02-12 10:09   ` Samuel Ortiz
  2013-02-12 10:09 ` [PATCH 1/2] mfd: syscon: Fix sparse warning Samuel Ortiz
  1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2013-02-11 20:48 UTC (permalink / raw)
  To: sameo; +Cc: linux-kernel, Fabio Estevam, Ashish Jangam

From: Fabio Estevam <fabio.estevam@freescale.com>

da9052_i2c_fix() is only used locally, so let it be static.

Fix the following sparse warning:

drivers/mfd/da9052-i2c.c:63:5: warning: symbol 'da9052_i2c_fix' was not declared. Should it be static?

Cc: Ashish Jangam <ashish.jangam@kpitcummins.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/mfd/da9052-i2c.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c
index 885e567..6a9fec4 100644
--- a/drivers/mfd/da9052-i2c.c
+++ b/drivers/mfd/da9052-i2c.c
@@ -60,7 +60,7 @@ static inline bool i2c_safe_reg(unsigned char reg)
  * This fix is to follow any read or write with a dummy read to a safe
  * register.
  */
-int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg)
+static int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg)
 {
 	int val;
 
@@ -85,7 +85,6 @@ int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg)
 
 	return 0;
 }
-EXPORT_SYMBOL(da9052_i2c_fix);
 
 static int da9052_i2c_enable_multiwrite(struct da9052 *da9052)
 {
-- 
1.7.9.5


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

* Re: [PATCH 1/2] mfd: syscon: Fix sparse warning
  2013-02-11 20:48 [PATCH 1/2] mfd: syscon: Fix sparse warning Fabio Estevam
  2013-02-11 20:48 ` [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix() Fabio Estevam
@ 2013-02-12 10:09 ` Samuel Ortiz
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Ortiz @ 2013-02-12 10:09 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linux-kernel, Fabio Estevam, Dong Aisheng

Hi Fabio,

On Mon, Feb 11, 2013 at 06:48:00PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Fix the following sparse warnings:
> 
> drivers/mfd/syscon.c:40:15: warning: symbol 'syscon_node_to_regmap' was not declared. Should it be static?
> drivers/mfd/syscon.c:56:15: warning: symbol 'syscon_regmap_lookup_by_compatible' was not declared. Should it be static?
> drivers/mfd/syscon.c:72:15: warning: symbol 'syscon_regmap_lookup_by_phandle' was not declared. Should it be static?
> 
> Cc: Dong Aisheng <dong.aisheng@linaro.org>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  drivers/mfd/syscon.c |    1 +
>  1 file changed, 1 insertion(+)
Applied, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

* Re: [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix()
  2013-02-11 20:48 ` [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix() Fabio Estevam
@ 2013-02-12 10:09   ` Samuel Ortiz
  0 siblings, 0 replies; 4+ messages in thread
From: Samuel Ortiz @ 2013-02-12 10:09 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linux-kernel, Fabio Estevam, Ashish Jangam

Hi Fabio,

On Mon, Feb 11, 2013 at 06:48:01PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> da9052_i2c_fix() is only used locally, so let it be static.
> 
> Fix the following sparse warning:
> 
> drivers/mfd/da9052-i2c.c:63:5: warning: symbol 'da9052_i2c_fix' was not declared. Should it be static?
> 
> Cc: Ashish Jangam <ashish.jangam@kpitcummins.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  drivers/mfd/da9052-i2c.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
Applied as well, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

end of thread, other threads:[~2013-02-12 10:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11 20:48 [PATCH 1/2] mfd: syscon: Fix sparse warning Fabio Estevam
2013-02-11 20:48 ` [PATCH 2/2] mfd: da9052-i2c: Staticize da9052_i2c_fix() Fabio Estevam
2013-02-12 10:09   ` Samuel Ortiz
2013-02-12 10:09 ` [PATCH 1/2] mfd: syscon: Fix sparse warning Samuel Ortiz

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.