Skip to contentSkip to conversation

staging/nvec: Remove double const qualifier

PATCH In review Thierry Reding 2 participants 2 messages Jul 21, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/nvec: Remove double const qualifier

From: Thierry Reding <[email protected]>

The SIMPLE_DEV_PM_OPS macro already uses the const qualifier, so there's no need to repeat it.

---
 drivers/staging/nvec/nvec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/nvec/nvec.c +1 -1
index 11f9e1c3447c..aef52306620a 100644
@@ -959,7 +959,7 @@ static int nvec_resume(struct device *dev)
 }
 #endif
 
-static const SIMPLE_DEV_PM_OPS(nvec_pm_ops, nvec_suspend, nvec_resume);
+static SIMPLE_DEV_PM_OPS(nvec_pm_ops, nvec_suspend, nvec_resume);
 
 /* Match table for of_platform binding */
 static const struct of_device_id nvidia_nvec_of_match[] = {
Signature · 1 line
2.0.1
Acked-by
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · On Mon, 21 Jul 2014 13:54:41 +0200 Thierry Reding…

From: Thierry Reding <[email protected]>

The SIMPLE_DEV_PM_OPS macro already uses the const qualifier, so there's no need to repeat it.

Quoted 20 lines
---
 drivers/staging/nvec/nvec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/nvec/nvec.c +1 -1
index 11f9e1c3447c..aef52306620a 100644
@@ -959,7 +959,7 @@ static int nvec_resume(struct device *dev)
 }
 #endif
 
-static const SIMPLE_DEV_PM_OPS(nvec_pm_ops, nvec_suspend, nvec_resume);
+static SIMPLE_DEV_PM_OPS(nvec_pm_ops, nvec_suspend, nvec_resume);
 
 /* Match table for of_platform binding */
 static const struct of_device_id nvidia_nvec_of_match[] = {
Signature · 1 line
2.0.1
Signature · 1 line
Marc Dietrich <[email protected]>