public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch ] remove redundant const in matrix_keypad.c
@ 2011-09-24  9:48 Zic Rim
  2011-09-24 11:16 ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Zic Rim @ 2011-09-24  9:48 UTC (permalink / raw)
  To: kernel-janitors

SIMPLE_DEV_PM_OPS defins a const struct , no need to prefix with  const.

Signed-off-by: Navin P <zicrim@gmail.com>


diff --git a/drivers/input/keyboard/matrix_keypad.c
b/drivers/input/keyboard/matrix_keypad.c
index b02e426..c127658 100644
--- a/drivers/input/keyboard/matrix_keypad.c
+++ b/drivers/input/keyboard/matrix_keypad.c
@@ -294,7 +294,7 @@ static int matrix_keypad_resume(struct device *dev)
        return 0;
 }

-static const SIMPLE_DEV_PM_OPS(matrix_keypad_pm_ops,
+static SIMPLE_DEV_PM_OPS(matrix_keypad_pm_ops,
                                matrix_keypad_suspend, matrix_keypad_resume);
 #endif

^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [PATCH] Remove redundant const in matrix_keypad.c
@ 2011-09-25 10:38 Navin P
  0 siblings, 0 replies; 3+ messages in thread
From: Navin P @ 2011-09-25 10:38 UTC (permalink / raw)
  To: kernel-janitors

 Remove the const keyword as SIMPLE_DEV_PMS_OPS already defines a const struct.
 Signed-off-by: Navin P <zicrim@gmail.com>

---
 drivers/input/keyboard/matrix_keypad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c
index b02e426..c127658 100644
--- a/drivers/input/keyboard/matrix_keypad.c
+++ b/drivers/input/keyboard/matrix_keypad.c
@@ -294,7 +294,7 @@ static int matrix_keypad_resume(struct device *dev)
 	return 0;
 }
 
-static const SIMPLE_DEV_PM_OPS(matrix_keypad_pm_ops,
+static SIMPLE_DEV_PM_OPS(matrix_keypad_pm_ops,
 				matrix_keypad_suspend, matrix_keypad_resume);
 #endif
 
-- 
1.7.0.4



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

end of thread, other threads:[~2011-09-25 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-24  9:48 [patch ] remove redundant const in matrix_keypad.c Zic Rim
2011-09-24 11:16 ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2011-09-25 10:38 [PATCH] Remove " Navin P

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