diff options
author | Archit Taneja <archit@ti.com> | 2014-03-06 05:07:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-04-07 08:42:49 -0400 |
commit | b20902b92e6a49ab21a79d4b2e56a6dd0085c696 (patch) | |
tree | 315c1fc3b893e5dd6a2c3d55130c232b7002428a /drivers/media | |
parent | fca27a9836963a279833f01ed55c458d46ac1c3d (diff) |
[media] v4l: ti-vpe: Use correct bus_info name for the device in querycap
The bus_info parameter in v4l2_capabilities expects a 'platform_' prefix. This
wasn't done in the driver and hence was breaking compliance. Update the bus_info
parameter accordingly.
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/ti-vpe/vpe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index c1988a9c023e..4511921421e2 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c | |||
@@ -1338,7 +1338,8 @@ static int vpe_querycap(struct file *file, void *priv, | |||
1338 | { | 1338 | { |
1339 | strncpy(cap->driver, VPE_MODULE_NAME, sizeof(cap->driver) - 1); | 1339 | strncpy(cap->driver, VPE_MODULE_NAME, sizeof(cap->driver) - 1); |
1340 | strncpy(cap->card, VPE_MODULE_NAME, sizeof(cap->card) - 1); | 1340 | strncpy(cap->card, VPE_MODULE_NAME, sizeof(cap->card) - 1); |
1341 | strlcpy(cap->bus_info, VPE_MODULE_NAME, sizeof(cap->bus_info)); | 1341 | snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", |
1342 | VPE_MODULE_NAME); | ||
1342 | cap->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; | 1343 | cap->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; |
1343 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; | 1344 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; |
1344 | return 0; | 1345 | return 0; |