media: staging: use strscpy() instead of strlcpy()
There are a few left overs at staging which were still using the deprecated strlcpy() function. Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
dfe571ca8d
commit
12d5290e63
@ -30,7 +30,7 @@ struct imx_media_dev *imx_media_dev_init(struct device *dev)
|
||||
|
||||
dev_set_drvdata(dev, imxmd);
|
||||
|
||||
strlcpy(imxmd->md.model, "imx-media", sizeof(imxmd->md.model));
|
||||
strscpy(imxmd->md.model, "imx-media", sizeof(imxmd->md.model));
|
||||
imxmd->md.ops = &imx_media_md_ops;
|
||||
imxmd->md.dev = dev;
|
||||
|
||||
@ -38,7 +38,7 @@ struct imx_media_dev *imx_media_dev_init(struct device *dev)
|
||||
|
||||
imxmd->v4l2_dev.mdev = &imxmd->md;
|
||||
imxmd->v4l2_dev.notify = imx_media_notify;
|
||||
strlcpy(imxmd->v4l2_dev.name, "imx-media",
|
||||
strscpy(imxmd->v4l2_dev.name, "imx-media",
|
||||
sizeof(imxmd->v4l2_dev.name));
|
||||
|
||||
media_device_init(&imxmd->md);
|
||||
|
@ -462,7 +462,7 @@ static int rockchip_vpu_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
vpu->mdev.dev = vpu->dev;
|
||||
strlcpy(vpu->mdev.model, DRIVER_NAME, sizeof(vpu->mdev.model));
|
||||
strscpy(vpu->mdev.model, DRIVER_NAME, sizeof(vpu->mdev.model));
|
||||
media_device_init(&vpu->mdev);
|
||||
vpu->v4l2_dev.mdev = &vpu->mdev;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user