Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d364ee4f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 76df01ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)