Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] soc_camera: preserve const attribute

drivers/media/video/soc_camera.c: In function ‘soc_camera_video_start’:
drivers/media/video/soc_camera.c:1515: warning: initialization discards qualifiers from pointer target type

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

+1 -1
+1 -1
drivers/media/video/soc_camera.c
··· 1512 1512 */ 1513 1513 static int soc_camera_video_start(struct soc_camera_device *icd) 1514 1514 { 1515 - struct device_type *type = icd->vdev->dev.type; 1515 + const struct device_type *type = icd->vdev->dev.type; 1516 1516 int ret; 1517 1517 1518 1518 if (!icd->dev.parent)