aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/i2c/ov7251.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-07-03 17:19:27 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-10-04 16:06:15 -0400
commit2d95e7ed07ed29715a801a3d33b2ad2a6fb26ee3 (patch)
tree5054993a2a98cd1552749cbdb8b006d32409c4d3 /drivers/media/i2c/ov7251.c
parentmedia: v4l: fwnode: Add definitions for CSI-2 D-PHY, parallel and Bt.656 busses (diff)
downloadwireguard-linux-2d95e7ed07ed29715a801a3d33b2ad2a6fb26ee3.tar.xz
wireguard-linux-2d95e7ed07ed29715a801a3d33b2ad2a6fb26ee3.zip
media: v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY
The CSI-2 bus may use either D-PHY or C-PHY. Make this visible in media bus enum. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Tested-by: Steve Longerbeam <steve_longerbeam@mentor.com> Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ov7251.c')
-rw-r--r--drivers/media/i2c/ov7251.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov7251.c b/drivers/media/i2c/ov7251.c
index d3ebb7529fca..0c10203f822b 100644
--- a/drivers/media/i2c/ov7251.c
+++ b/drivers/media/i2c/ov7251.c
@@ -1279,9 +1279,9 @@ static int ov7251_probe(struct i2c_client *client)
return ret;
}
- if (ov7251->ep.bus_type != V4L2_MBUS_CSI2) {
+ if (ov7251->ep.bus_type != V4L2_MBUS_CSI2_DPHY) {
dev_err(dev, "invalid bus type (%u), must be CSI2 (%u)\n",
- ov7251->ep.bus_type, V4L2_MBUS_CSI2);
+ ov7251->ep.bus_type, V4L2_MBUS_CSI2_DPHY);
return -EINVAL;
}