All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: s3c2410_ts: Make s3c_ts_pmops const
@ 2012-08-31  9:47 Sachin Kamat
  2012-08-31 14:51 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-08-31  9:47 UTC (permalink / raw)
  To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, patches

Fixes the following warning:
WARNING: struct dev_pm_ops should normally be const

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/input/touchscreen/s3c2410_ts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
index bf1a064..b3c66d4 100644
--- a/drivers/input/touchscreen/s3c2410_ts.c
+++ b/drivers/input/touchscreen/s3c2410_ts.c
@@ -406,7 +406,7 @@ static int s3c2410ts_resume(struct device *dev)
 	return 0;
 }
 
-static struct dev_pm_ops s3c_ts_pmops = {
+static const struct dev_pm_ops s3c_ts_pmops = {
 	.suspend	= s3c2410ts_suspend,
 	.resume		= s3c2410ts_resume,
 };
-- 
1.7.4.1


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

* Re: [PATCH] Input: s3c2410_ts: Make s3c_ts_pmops const
  2012-08-31  9:47 [PATCH] Input: s3c2410_ts: Make s3c_ts_pmops const Sachin Kamat
@ 2012-08-31 14:51 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2012-08-31 14:51 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-input, patches

On Fri, Aug 31, 2012 at 03:17:17PM +0530, Sachin Kamat wrote:
> Fixes the following warning:
> WARNING: struct dev_pm_ops should normally be const
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Applied, thanks Sachin.

> ---
>  drivers/input/touchscreen/s3c2410_ts.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
> index bf1a064..b3c66d4 100644
> --- a/drivers/input/touchscreen/s3c2410_ts.c
> +++ b/drivers/input/touchscreen/s3c2410_ts.c
> @@ -406,7 +406,7 @@ static int s3c2410ts_resume(struct device *dev)
>  	return 0;
>  }
>  
> -static struct dev_pm_ops s3c_ts_pmops = {
> +static const struct dev_pm_ops s3c_ts_pmops = {
>  	.suspend	= s3c2410ts_suspend,
>  	.resume		= s3c2410ts_resume,
>  };
> -- 
> 1.7.4.1
> 

-- 
Dmitry

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

end of thread, other threads:[~2012-08-31 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-31  9:47 [PATCH] Input: s3c2410_ts: Make s3c_ts_pmops const Sachin Kamat
2012-08-31 14:51 ` Dmitry Torokhov

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.