kernel-janitors.vger.kernel.org archive mirror
 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

* Re: [patch ] remove redundant const in matrix_keypad.c
  2011-09-24  9:48 [patch ] remove " Zic Rim
@ 2011-09-24 11:16 ` Dan Carpenter
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2011-09-24 11:16 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Sep 24, 2011 at 03:06:31PM +0530, Zic Rim wrote:
> SIMPLE_DEV_PM_OPS defins a const struct , no need to prefix with  const.
> 
> Signed-off-by: Navin P <zicrim@gmail.com>
> 

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

Hi hi,

Could you change your setup so that the From and Signed-off-by lines
match?  Also please you your full name (if P is your full last name
that's great of course, but I just wanted to check).

Can you CC the people from
./scripts/get_maintainer.pl -f drivers/input/keyboard/matrix_keypad.c

If there is a subsystem list (in this case linux-input), then I
normally leave out linux-kernel@vger.kernel.org.  They don't care
about janitor patches generally.  But if there isn't a subsystem
list, then do include linux-kernel.

Your email client is mangling the patch.

> 
> diff --git a/drivers/input/keyboard/matrix_keypad.c
> b/drivers/input/keyboard/matrix_keypad.c

It line wrapped this.

> 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;

The tabs are changed to spaces.

>  }
> 
> -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
> --

I don't know if you are using the gmail web interface, but that won't
work at all.  You'll need to set up an email client or use the git
email features.

1) Send a patch to yourself.
2) Save the raw email including headers and everything
3) cd path/to/src ; cat raw_email.txt | patch -p1

When the patch applies correctly then resend it.

Don't feel bad that your first patch got rejected for house keeping
reasons.  That's how we all started.  :)

regards,
dan carpenter

^ permalink raw reply	[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-25 10:38 [PATCH] Remove redundant const in matrix_keypad.c Navin P
  -- strict thread matches above, loose matches on Subject: below --
2011-09-24  9:48 [patch ] remove " Zic Rim
2011-09-24 11:16 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).