media: venus: fill missing video_device name
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Fri, 18 Aug 2017 14:16:03 +0000 (10:16 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 12:44:25 +0000 (08:44 -0400)
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>
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c

index 44d4848e878ada373ae45881eba2cc1d4d315bb5..32a1feb2fe6a6044542befb6ca5bfab0f9544794 100644 (file)
@@ -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;
index 3f79da01840268bc94ed840583cf59a44bbe4d1c..7eb346869d2846a2b7eba75d3bece9881bbe1bba 100644 (file)
@@ -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;