diff mbox

[1/2,media] soc_camera: Constify dev_pm_ops in mt9t031.c

Message ID 1367314149-16448-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat April 30, 2013, 9:29 a.m. UTC
Silences the following warning:
WARNING: struct dev_pm_ops should normally be const

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/media/i2c/soc_camera/mt9t031.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sachin Kamat May 7, 2013, 6:30 a.m. UTC | #1
On 30 April 2013 14:59, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Silences the following warning:
> WARNING: struct dev_pm_ops should normally be const
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/media/i2c/soc_camera/mt9t031.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c
> index 26a15b8..191e3f1 100644
> --- a/drivers/media/i2c/soc_camera/mt9t031.c
> +++ b/drivers/media/i2c/soc_camera/mt9t031.c
> @@ -595,7 +595,7 @@ static int mt9t031_runtime_resume(struct device *dev)
>         return 0;
>  }
>
> -static struct dev_pm_ops mt9t031_dev_pm_ops = {
> +static const struct dev_pm_ops mt9t031_dev_pm_ops = {
>         .runtime_suspend        = mt9t031_runtime_suspend,
>         .runtime_resume         = mt9t031_runtime_resume,
>  };
> --
> 1.7.9.5
>

ping..
Guennadi Liakhovetski May 7, 2013, 6:52 a.m. UTC | #2
On Tue, 30 Apr 2013, Sachin Kamat wrote:

> Silences the following warning:
> WARNING: struct dev_pm_ops should normally be const
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Thanks, both queued for 3.11

Guennadi

> ---
>  drivers/media/i2c/soc_camera/mt9t031.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c
> index 26a15b8..191e3f1 100644
> --- a/drivers/media/i2c/soc_camera/mt9t031.c
> +++ b/drivers/media/i2c/soc_camera/mt9t031.c
> @@ -595,7 +595,7 @@ static int mt9t031_runtime_resume(struct device *dev)
>  	return 0;
>  }
>  
> -static struct dev_pm_ops mt9t031_dev_pm_ops = {
> +static const struct dev_pm_ops mt9t031_dev_pm_ops = {
>  	.runtime_suspend	= mt9t031_runtime_suspend,
>  	.runtime_resume		= mt9t031_runtime_resume,
>  };
> -- 
> 1.7.9.5
> 

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
diff mbox

Patch

diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c
index 26a15b8..191e3f1 100644
--- a/drivers/media/i2c/soc_camera/mt9t031.c
+++ b/drivers/media/i2c/soc_camera/mt9t031.c
@@ -595,7 +595,7 @@  static int mt9t031_runtime_resume(struct device *dev)
 	return 0;
 }
 
-static struct dev_pm_ops mt9t031_dev_pm_ops = {
+static const struct dev_pm_ops mt9t031_dev_pm_ops = {
 	.runtime_suspend	= mt9t031_runtime_suspend,
 	.runtime_resume		= mt9t031_runtime_resume,
 };