All of lore.kernel.org
 help / color / mirror / Atom feed
* [PM-SR][PATCH 0/4] Janitor series: kill sparse warnings
@ 2010-06-24 21:29 Nishanth Menon
  2010-06-24 21:29 ` [PM-SR] [PATCH 1/4] omap: sr: export sr_dbg_dir Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Nishanth Menon @ 2010-06-24 21:29 UTC (permalink / raw)
  To: linux-omap; +Cc: Nishanth Menon, Kevin Hilman, Thara Gopinath

This series removes few of the sparse warnings I found. This series
probably should be squashed with other patches in pm-sr branch

Nishanth Menon (4):
  omap: sr: export sr_dbg_dir
  omap3: sr: sr_exit should be static
  omap3: voltage: make required variables static
  omap3: voltage: expose omap_change_voltscale_method

 arch/arm/mach-omap2/smartreflex.c             |    2 +-
 arch/arm/mach-omap2/voltage.c                 |    6 +++---
 arch/arm/mach-omap2/voltage.h                 |    1 +
 arch/arm/plat-omap/include/plat/smartreflex.h |    5 +++++
 4 files changed, 10 insertions(+), 4 deletions(-)

Regards,
Nishanth Menon

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Thara Gopinath <thara@ti.com>

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

* [PM-SR] [PATCH 1/4] omap: sr: export sr_dbg_dir
  2010-06-24 21:29 [PM-SR][PATCH 0/4] Janitor series: kill sparse warnings Nishanth Menon
@ 2010-06-24 21:29 ` Nishanth Menon
  2010-06-24 21:29   ` [PM-SR] [PATCH 2/4] omap3: sr: sr_exit should be static Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Nishanth Menon @ 2010-06-24 21:29 UTC (permalink / raw)
  To: linux-omap; +Cc: Nishanth Menon, Kevin Hilman, Thara Gopinath

sr_dbg_dir is currently used privately in smartreflex.c, however,
smartreflex class drivers could store their own debugfs entries there
as well.

This also fixes the sparse warning:
arch/arm/mach-omap2/smartreflex.c:44:15: warning: symbol 'sr_dbg_dir' was not declared. Should it be static?

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Thara Gopinath <thara@ti.com>

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm/plat-omap/include/plat/smartreflex.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/smartreflex.h b/arch/arm/plat-omap/include/plat/smartreflex.h
index 1105db0..df58026 100644
--- a/arch/arm/plat-omap/include/plat/smartreflex.h
+++ b/arch/arm/plat-omap/include/plat/smartreflex.h
@@ -263,6 +263,11 @@ int omap_sr_register_class(struct omap_smartreflex_class_data *class_data);
 
 /* API to register the pmic specific data with the smartreflex driver. */
 void omap_sr_register_pmic(struct omap_smartreflex_pmic_data *pmic_data);
+
+#ifdef CONFIG_PM_DEBUG
+extern struct dentry *sr_dbg_dir;
+#endif
+
 #else
 static inline void omap_smartreflex_enable(int srid) {}
 static inline void omap_smartreflex_disable(int srid) {}
-- 
1.6.3.3


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

* [PM-SR] [PATCH 2/4] omap3: sr: sr_exit should be static
  2010-06-24 21:29 ` [PM-SR] [PATCH 1/4] omap: sr: export sr_dbg_dir Nishanth Menon
@ 2010-06-24 21:29   ` Nishanth Menon
  2010-06-24 21:29     ` [PM-SR][PATCH 3/4] omap3: voltage: make required variables static Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Nishanth Menon @ 2010-06-24 21:29 UTC (permalink / raw)
  To: linux-omap; +Cc: Nishanth Menon, Kevin Hilman, Thara Gopinath

sr_exit has no business being a public function.
fixes sparse:
arch/arm/mach-omap2/smartreflex.c:959:13: warning: symbol 'sr_exit' was not declared. Should it be static?

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Thara Gopinath <thara@ti.com>

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm/mach-omap2/smartreflex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 57fc9b2..786e896 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -956,7 +956,7 @@ static int __init sr_init(void)
 	return 0;
 }
 
-void __exit sr_exit(void)
+static void __exit sr_exit(void)
 {
 	platform_driver_unregister(&smartreflex_driver);
 }
-- 
1.6.3.3


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

* [PM-SR][PATCH 3/4] omap3: voltage: make required variables static
  2010-06-24 21:29   ` [PM-SR] [PATCH 2/4] omap3: sr: sr_exit should be static Nishanth Menon
@ 2010-06-24 21:29     ` Nishanth Menon
  2010-06-24 21:29       ` [PM-SR][PATCH 4/4] omap3: voltage: expose omap_change_voltscale_method Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Nishanth Menon @ 2010-06-24 21:29 UTC (permalink / raw)
  To: linux-omap; +Cc: Nishanth Menon, Kevin Hilman, Thara Gopinath

debugfs voltage_dir - used only by voltage layer and no reason for
others to add data to it, so make it static.  omap3_vp_offs,
volt_mod have no business being exposed as global. make them static

This fixes sparse warnings:
arch/arm/mach-omap2/voltage.c:42:15: warning: symbol 'voltage_dir' was not declared. Should it be static?
arch/arm/mach-omap2/voltage.c:49:5: warning: symbol 'volt_mod' was not declared. Should it be static?
arch/arm/mach-omap2/voltage.c:130:27: warning: symbol 'omap3_vp_offs' was not declared. Should it be static?

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Thara Gopinath <thara@ti.com>

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm/mach-omap2/voltage.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c
index d289691..6927d6a 100644
--- a/arch/arm/mach-omap2/voltage.c
+++ b/arch/arm/mach-omap2/voltage.c
@@ -39,14 +39,14 @@
 #define VP_TRANXDONE_TIMEOUT	300
 
 #ifdef CONFIG_PM_DEBUG
-struct dentry *voltage_dir;
+static struct dentry *voltage_dir;
 #endif
 
 /* VP SR debug support */
 u32 enable_sr_vp_debug;
 
 /* PRM voltage module */
-u32 volt_mod;
+static u32 volt_mod;
 
 /* Voltage processor register offsets */
 struct vp_reg_offs {
@@ -127,7 +127,7 @@ static struct omap_vdd_info *vdd_info;
 static int no_scalable_vdd;
 
 /* OMAP3 VP register offsets and other definitions */
-struct __init vp_reg_offs omap3_vp_offs[] = {
+static struct __init vp_reg_offs omap3_vp_offs[] = {
 	/* VP1 */
 	{
 		.vpconfig_reg = OMAP3_PRM_VP1_CONFIG_OFFSET,
-- 
1.6.3.3


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

* [PM-SR][PATCH 4/4] omap3: voltage: expose omap_change_voltscale_method
  2010-06-24 21:29     ` [PM-SR][PATCH 3/4] omap3: voltage: make required variables static Nishanth Menon
@ 2010-06-24 21:29       ` Nishanth Menon
  0 siblings, 0 replies; 5+ messages in thread
From: Nishanth Menon @ 2010-06-24 21:29 UTC (permalink / raw)
  To: linux-omap; +Cc: Nishanth Menon, Kevin Hilman, Thara Gopinath

omap_change_voltscale_method is to be used by board files
to choose which mechanism they would prefer to do update
of voltage to thier PMIC. unless we expose it, they cant
use it.

This also fixes sparse warning:
arch/arm/mach-omap2/voltage.c:1046:6: warning: symbol 'omap_change_voltscale_method' was not declared. Should it be static?

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Thara Gopinath <thara@ti.com>

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm/mach-omap2/voltage.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h
index a7be515..6dc8ce4 100644
--- a/arch/arm/mach-omap2/voltage.h
+++ b/arch/arm/mach-omap2/voltage.h
@@ -113,6 +113,7 @@ void omap_voltageprocessor_enable(int vp_id);
 void omap_voltageprocessor_disable(int vp_id);
 int omap_voltage_scale(int vdd, unsigned long target_volt);
 void omap_reset_voltage(int vdd);
+void omap_change_voltscale_method(int voltscale_method);
 int omap_get_voltage_table(int vdd, struct omap_volt_data **volt_data);
 struct omap_volt_data *omap_get_volt_data(int vdd, unsigned long volt);
 void omap_voltage_register_pmic(struct omap_volt_pmic_info *pmic_info);
-- 
1.6.3.3


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

end of thread, other threads:[~2010-06-24 21:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-24 21:29 [PM-SR][PATCH 0/4] Janitor series: kill sparse warnings Nishanth Menon
2010-06-24 21:29 ` [PM-SR] [PATCH 1/4] omap: sr: export sr_dbg_dir Nishanth Menon
2010-06-24 21:29   ` [PM-SR] [PATCH 2/4] omap3: sr: sr_exit should be static Nishanth Menon
2010-06-24 21:29     ` [PM-SR][PATCH 3/4] omap3: voltage: make required variables static Nishanth Menon
2010-06-24 21:29       ` [PM-SR][PATCH 4/4] omap3: voltage: expose omap_change_voltscale_method Nishanth Menon

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.