diff options
author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2017-08-18 17:16:03 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 15:44:25 +0300 |
commit | 5c2c165905026a8ec2779710e5fe63d8086587e1 (patch) | |
tree | b7eca36885ae933ea86302a93ce87d32d87d8101 /drivers/media/platform/qcom/venus/venc.c | |
parent | 62d625c93ca1f6d3a36ea803a37f34b7d5ae82ce (diff) | |
download | linux-5c2c165905026a8ec2779710e5fe63d8086587e1.tar.xz |
media: venus: fill missing video_device name
This fills missing (forgotten) video device name with
appropriate string so that udev can distinguishes between
decoder and encoder devices.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
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/qcom/venus/venc.c')
-rw-r--r-- | drivers/media/platform/qcom/venus/venc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index 3f79da018402..7eb346869d28 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -1190,6 +1190,7 @@ static int venc_probe(struct platform_device *pdev) if (!vdev) return -ENOMEM; + strlcpy(vdev->name, "qcom-venus-encoder", sizeof(vdev->name)); vdev->release = video_device_release; vdev->fops = &venc_fops; vdev->ioctl_ops = &venc_ioctl_ops; |