summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/rcar-vin/rcar-v4l2.c
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2016-08-15 12:06:35 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-23 16:23:38 -0300
commitb50b77e6c9a99ddae5266b21cf6757e91d18ffc2 (patch)
tree7bfa61dfbb4623f1ba7d3628c9a803b52968f385 /drivers/media/platform/rcar-vin/rcar-v4l2.c
parent83fba2c06f19f4a6bff785a91c33a5c4de142e5e (diff)
downloadlinux-b50b77e6c9a99ddae5266b21cf6757e91d18ffc2.tar.gz
linux-b50b77e6c9a99ddae5266b21cf6757e91d18ffc2.tar.bz2
linux-b50b77e6c9a99ddae5266b21cf6757e91d18ffc2.zip
[media] rcar-vin: move media bus information to struct rvin_graph_entity
The primary reason for this change is to prepare for Gen3 support where there will be more then one possible video source. Each source will have its own media bus format and code, so it needs to be moved from the per device structure to a structure used to represent an individual connection to a video source. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/rcar-vin/rcar-v4l2.c')
-rw-r--r--drivers/media/platform/rcar-vin/rcar-v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c
index ef3464d10cfb..d0e9d65b9cf3 100644
--- a/drivers/media/platform/rcar-vin/rcar-v4l2.c
+++ b/drivers/media/platform/rcar-vin/rcar-v4l2.c
@@ -106,7 +106,7 @@ static int __rvin_try_format_source(struct rvin_dev *vin,
sd = vin_to_source(vin);
- v4l2_fill_mbus_format(&format.format, pix, vin->source.code);
+ v4l2_fill_mbus_format(&format.format, pix, vin->digital.code);
pad_cfg = v4l2_subdev_alloc_pad_config(sd);
if (pad_cfg == NULL)