summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/mt9v032.c
diff options
context:
space:
mode:
authorSakari Ailus2018-07-31 11:15:50 +0200
committerMauro Carvalho Chehab2018-10-04 22:21:02 +0200
commit60359a28d59278e2a9e7558c15dc7be518d9beb8 (patch)
tree65d2bf372d60aa7d6905cb73b42c6b192b80d06f /drivers/media/i2c/mt9v032.c
parentmedia: v4l: fwnode: Parse the graph endpoint as last (diff)
downloadkernel-qcow2-linux-60359a28d59278e2a9e7558c15dc7be518d9beb8.tar.gz
kernel-qcow2-linux-60359a28d59278e2a9e7558c15dc7be518d9beb8.tar.xz
kernel-qcow2-linux-60359a28d59278e2a9e7558c15dc7be518d9beb8.zip
media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero
Initialise the V4L2 fwnode endpoints to zero in all drivers using v4l2_fwnode_endpoint_parse(). This prepares for setting default endpoint flags as well as the bus type. Setting bus type to zero will continue to guess the bus among the guessable set (parallel, Bt.656 and CSI-2 D-PHY). 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/mt9v032.c')
-rw-r--r--drivers/media/i2c/mt9v032.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c
index f74730d24d8f..67f69ad6ecf4 100644
--- a/drivers/media/i2c/mt9v032.c
+++ b/drivers/media/i2c/mt9v032.c
@@ -989,7 +989,7 @@ static struct mt9v032_platform_data *
mt9v032_get_pdata(struct i2c_client *client)
{
struct mt9v032_platform_data *pdata = NULL;
- struct v4l2_fwnode_endpoint endpoint;
+ struct v4l2_fwnode_endpoint endpoint = { .bus_type = 0 };
struct device_node *np;
struct property *prop;