Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: ov9282: Add ov9281 compatible

According to product brief they are identical from software point of view.
Differences are a different chief ray angle (CRA) and the package.
To distinguish ov9281 & ov9282 in userspace the name has to be explicitly
set. Provide a fixed string using platform data.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Alexander Stein and committed by
Mauro Carvalho Chehab
1b584f20 7945cb53

+4 -1
+4 -1
drivers/media/i2c/ov9282.c
··· 1400 1400 1401 1401 /* Initialize subdev */ 1402 1402 v4l2_i2c_subdev_init(&ov9282->sd, client, &ov9282_subdev_ops); 1403 + v4l2_i2c_subdev_set_name(&ov9282->sd, client, 1404 + device_get_match_data(ov9282->dev), NULL); 1403 1405 1404 1406 ret = ov9282_parse_hw_config(ov9282); 1405 1407 if (ret) { ··· 1501 1499 }; 1502 1500 1503 1501 static const struct of_device_id ov9282_of_match[] = { 1504 - { .compatible = "ovti,ov9282" }, 1502 + { .compatible = "ovti,ov9281", .data = "ov9281" }, 1503 + { .compatible = "ovti,ov9282", .data = "ov9282" }, 1505 1504 { } 1506 1505 }; 1507 1506