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

Commit 399d8465 authored by Daniel Drake's avatar Daniel Drake Committed by Mauro Carvalho Chehab
Browse files

[media] cafe_ccic: fix subdev configuration



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: default avatarDaniel Drake <dsd@laptop.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 35bbe587
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -2065,8 +2065,9 @@ static int cafe_pci_probe(struct pci_dev *pdev,
		sensor_cfg.clock_speed = 45;
		sensor_cfg.clock_speed = 45;


	cam->sensor_addr = 0x42;
	cam->sensor_addr = 0x42;
	cam->sensor = v4l2_i2c_new_subdev(&cam->v4l2_dev, &cam->i2c_adapter,
	cam->sensor = v4l2_i2c_new_subdev_cfg(&cam->v4l2_dev, &cam->i2c_adapter,
			NULL, "ov7670", cam->sensor_addr, NULL);
			"ov7670", "ov7670", 0, &sensor_cfg, cam->sensor_addr,
			NULL);
	if (cam->sensor == NULL) {
	if (cam->sensor == NULL) {
		ret = -ENODEV;
		ret = -ENODEV;
		goto out_smbus;
		goto out_smbus;