projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76df01e
)
[media] soc_camera: preserve const attribute
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 1 Jun 2011 18:03:56 +0000
(15:03 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 1 Jun 2011 18:03:56 +0000
(15:03 -0300)
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>
drivers/media/video/soc_camera.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/soc_camera.c
b/drivers/media/video/soc_camera.c
index
3988643
..
4e4d412
100644
(file)
--- a/
drivers/media/video/soc_camera.c
+++ b/
drivers/media/video/soc_camera.c
@@
-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)