diff options
| author | 2020-06-12 15:53:55 +0200 | |
|---|---|---|
| committer | 2020-06-23 15:18:53 +0200 | |
| commit | a270675875829b6d46eb9e38960fd6019555ebb8 (patch) | |
| tree | fd68fe4d024f8717a58afadd0f7bc88745dcddea /drivers/media/mc/mc-request.c | |
| parent | media: i2c: imx290: Move the settle time delay out of loop (diff) | |
| download | linux-dev-a270675875829b6d46eb9e38960fd6019555ebb8.tar.xz linux-dev-a270675875829b6d46eb9e38960fd6019555ebb8.zip | |
media: i2c: imx290: set bus_type before calling v4l2_fwnode_endpoint_alloc_parse()
The bus_type field of v4l2_fwnode_endpoint structure passed as the argument
to v4l2_fwnode_endpoint_alloc_parse() function must be initiaized.
Set it to V4L2_MBUS_CSI2_DPHY, and check for -ENXIO which is returned
when the requested media bus type doesn't match the fwnode.
Also remove v4l2_fwnode_endpoint field from struct imx290 as it is only
needed in the probe function: use the local variable for this purpose.
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/mc/mc-request.c')
0 files changed, 0 insertions, 0 deletions
