]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: staging/imx: remove devname string from imx_media_subdev
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 15 Dec 2017 01:04:42 +0000 (20:04 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 15 Dec 2017 19:05:29 +0000 (14:05 -0500)
A separate string for the device name, for DEVNAME async match, was
never needed. Just assign the asd device name to the passed platform
device name pointer in imx_media_add_async_subdev().

Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/imx/imx-media-dev.c
drivers/staging/media/imx/imx-media.h

index 09d2deb3734a815aa905a862149316fc34cce02d..ab0617d65e1701fb02501cafce5ee5aa6d283601 100644 (file)
@@ -112,8 +112,7 @@ imx_media_add_async_subdev(struct imx_media_dev *imxmd,
                asd->match.fwnode.fwnode = of_fwnode_handle(np);
        } else {
                asd->match_type = V4L2_ASYNC_MATCH_DEVNAME;
-               strncpy(imxsd->devname, devname, sizeof(imxsd->devname));
-               asd->match.device_name.name = imxsd->devname;
+               asd->match.device_name.name = devname;
                imxsd->pdev = pdev;
        }
 
index 08e34f9e2f6747f34fdf2bfde5d7182f77212ab3..c6cea2746424f6dcdae84a0ac41b4fe2ddf832ff 100644 (file)
@@ -128,8 +128,6 @@ struct imx_media_subdev {
 
        /* the platform device if this is an IPU-internal subdev */
        struct platform_device *pdev;
-       /* the devname is needed for async devname match */
-       char devname[32];
 };
 
 struct imx_media_dev {