summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2015-07-23 14:21:42 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-16 18:28:06 +0200
commit734f3f238587ffb6938700c4495dd5b5a54c4125 (patch)
treeb06f82989a624334419869646c9fcc8bdf50f1ea /drivers
parent[media] media: soc_camera: rcar_vin: Add BT.709 24-bit RGB888 input support (diff)
downloadlinux-734f3f238587ffb6938700c4495dd5b5a54c4125.tar.xz
linux-734f3f238587ffb6938700c4495dd5b5a54c4125.zip
[media] media: rcar_vin: fill in bus_info field
Adapt rcar_vin_querycap() so that cap->bus_info is populated with something meaningful/unique. Signed-off-by: Rob Taylor <rob.taylor@codethink.co.uk> Signed-off-by: William Towle <william.towle@codethink.co.uk> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/soc_camera/rcar_vin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c
index 16352a8c2ef1..6abef82b204f 100644
--- a/drivers/media/platform/soc_camera/rcar_vin.c
+++ b/drivers/media/platform/soc_camera/rcar_vin.c
@@ -1791,6 +1791,7 @@ static int rcar_vin_querycap(struct soc_camera_host *ici,
strlcpy(cap->card, "R_Car_VIN", sizeof(cap->card));
cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
+ snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s%d", DRV_NAME, ici->nr);
return 0;
}