Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: staging/imx: remove devname string from imx_media_subdev

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>

authored by

Steve Longerbeam and committed by
Mauro Carvalho Chehab
4dadf056 f5abe1c5

+1 -4
+1 -2
drivers/staging/media/imx/imx-media-dev.c
··· 112 112 asd->match.fwnode.fwnode = of_fwnode_handle(np); 113 113 } else { 114 114 asd->match_type = V4L2_ASYNC_MATCH_DEVNAME; 115 - strncpy(imxsd->devname, devname, sizeof(imxsd->devname)); 116 - asd->match.device_name.name = imxsd->devname; 115 + asd->match.device_name.name = devname; 117 116 imxsd->pdev = pdev; 118 117 } 119 118
-2
drivers/staging/media/imx/imx-media.h
··· 128 128 129 129 /* the platform device if this is an IPU-internal subdev */ 130 130 struct platform_device *pdev; 131 - /* the devname is needed for async devname match */ 132 - char devname[32]; 133 131 }; 134 132 135 133 struct imx_media_dev {