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>
This commit is contained in:
parent
62d625c93c
commit
5c2c165905
@ -1069,6 +1069,7 @@ static int vdec_probe(struct platform_device *pdev)
|
||||
if (!vdev)
|
||||
return -ENOMEM;
|
||||
|
||||
strlcpy(vdev->name, "qcom-venus-decoder", sizeof(vdev->name));
|
||||
vdev->release = video_device_release;
|
||||
vdev->fops = &vdec_fops;
|
||||
vdev->ioctl_ops = &vdec_ioctl_ops;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user