Skip to contentSkip to conversation

mfd: Staticise non-exported symbols in MAX8998 driver

PATCH In review Mark Brown 3 participants 3 messages Jan 20, 2011 – Jan 31, 2011 Multifunction devices (MFD)

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: Staticise non-exported symbols in MAX8998 driver

No need to have them in the global namespace and sparse complains.

---
 drivers/mfd/max8998.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/max8998.c +2 -2
index bbfe867..c002142 100644
@@ -233,7 +233,7 @@ struct max8998_reg_dump {
 	u8	val;
 };
 #define SAVE_ITEM(x)	{ .addr = (x), .val = 0x0, }
-struct max8998_reg_dump max8998_dump[] = {
+static struct max8998_reg_dump max8998_dump[] = {
 	SAVE_ITEM(MAX8998_REG_IRQM1),
 	SAVE_ITEM(MAX8998_REG_IRQM2),
 	SAVE_ITEM(MAX8998_REG_IRQM3),
@@ -298,7 +298,7 @@ static int max8998_restore(struct device *dev)
 	return 0;
 }
 
-const struct dev_pm_ops max8998_pm = {
+static const struct dev_pm_ops max8998_pm = {
 	.suspend = max8998_suspend,
 	.resume = max8998_resume,
 	.freeze = max8998_freeze,
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 38 lines · Mark Brown

No need to have them in the global namespace and sparse complains.

---
 drivers/mfd/max8998.c |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/max8998.c +2 -3
index bbfe867..c002142 100644
@@ -233,7 +233,7 @@ struct max8998_reg_dump {
        u8      val;
  };
  #define SAVE_ITEM(x)   { .addr = (x), .val = 0x0, }
-struct max8998_reg_dump max8998_dump[] = {
+static struct max8998_reg_dump max8998_dump[] = {
        SAVE_ITEM(MAX8998_REG_IRQM1),
        SAVE_ITEM(MAX8998_REG_IRQM2),
        SAVE_ITEM(MAX8998_REG_IRQM3),
@@ -298,7 +298,7 @@ static int max8998_restore(struct device *dev)
        return 0;
  }
 
-const struct dev_pm_ops max8998_pm = {
+static const struct dev_pm_ops max8998_pm = {
        .suspend = max8998_suspend,
        .resume = max8998_resume,
        .freeze = max8998_freeze,
--

1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

#2 lore raw
In reply to Mark Brown

Hi Mark,

Quoted 1 line · Mark Brown

No need to have them in the global namespace and sparse complains.

Thanks, patch applied.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/