Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 734f3f23 authored by Rob Taylor's avatar Rob Taylor Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarRob Taylor <rob.taylor@codethink.co.uk>
Signed-off-by: default avatarWilliam Towle <william.towle@codethink.co.uk>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 920a1bf3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}