mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 01:49:22 +07:00
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>
This commit is contained in:
parent
f5abe1c5f9
commit
4dadf0562b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user