Message ID | 1367314149-16448-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show |
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..
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 --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, };
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(-)