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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

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/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux