Skip to contentSkip to conversation

soc_camera: preserve const attribute

PATCH New Mauro Carvalho Chehab 1 participant 1 message Jun 1, 2011 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 76df01eacd5fa41b607426a8cb091fb21ae35554.1306951494.git.mchehab@redhat.com

#1 lore raw

PATCH 2/2 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

drivers/media/video/soc_camera.c +1 -1
index 3988643..4e4d412 100644
@@ -1512,7 +1512,7 @@ static int video_dev_create(struct soc_camera_device *icd)
  */
 static int soc_camera_video_start(struct soc_camera_device *icd)
 {
-	struct device_type *type = icd->vdev->dev.type;
+	const struct device_type *type = icd->vdev->dev.type;
 	int ret;
 
 	if (!icd->dev.parent)
Signature · 1 line
1.7.1