projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35bbe58
)
[media] cafe_ccic: fix subdev configuration
author
Daniel Drake
<
[email protected]
>
Wed, 27 Oct 2010 13:45:32 +0000
(10:45 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 9 Nov 2010 15:18:04 +0000
(13:18 -0200)
For some reason, commit
1aafeb30104a
is missing one change that was
included in the email submission.
The sensor configuration must be passed down to the ov7670 subdev.
Signed-off-by: Daniel Drake <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/cafe_ccic.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/cafe_ccic.c
b/drivers/media/video/cafe_ccic.c
index 2934770dacc3fee149baef4a20f7d6ed770addad..7bc36670071a8ba333ed0d67999d5f9079adc895 100644
(file)
--- a/
drivers/media/video/cafe_ccic.c
+++ b/
drivers/media/video/cafe_ccic.c
@@
-2065,8
+2065,9
@@
static int cafe_pci_probe(struct pci_dev *pdev,
sensor_cfg.clock_speed = 45;
cam->sensor_addr = 0x42;
- cam->sensor = v4l2_i2c_new_subdev(&cam->v4l2_dev, &cam->i2c_adapter,
- NULL, "ov7670", cam->sensor_addr, NULL);
+ cam->sensor = v4l2_i2c_new_subdev_cfg(&cam->v4l2_dev, &cam->i2c_adapter,
+ "ov7670", "ov7670", 0, &sensor_cfg, cam->sensor_addr,
+ NULL);
if (cam->sensor == NULL) {
ret = -ENODEV;
goto out_smbus;