bus/dpaa: change interface name passing in IOCTL

Due to change in latest kernel, passing the interface name to
kernel through IOCTL as string instead of character pointer.

Signed-off-by: Rohit Raj <rohit.raj@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
Rohit Raj 2022-10-07 08:57:39 +05:30 committed by Ferruh Yigit
parent afda343226
commit b585ecb54a

View File

@ -302,7 +302,7 @@ int bman_free_raw_portal(struct dpaa_raw_portal *portal)
_IOW(DPAA_IOCTL_MAGIC, 0x0E, struct usdpaa_ioctl_link_status)
#define DPAA_IOCTL_DISABLE_LINK_STATUS_INTERRUPT \
_IOW(DPAA_IOCTL_MAGIC, 0x0F, char*)
_IOW(DPAA_IOCTL_MAGIC, 0x0F, char[IF_NAME_MAX_LEN])
int dpaa_intr_enable(char *if_name, int efd)
{
@ -330,7 +330,7 @@ int dpaa_intr_disable(char *if_name)
if (ret)
return ret;
ret = ioctl(fd, DPAA_IOCTL_DISABLE_LINK_STATUS_INTERRUPT, &if_name);
ret = ioctl(fd, DPAA_IOCTL_DISABLE_LINK_STATUS_INTERRUPT, if_name);
if (ret) {
if (errno == EINVAL)
printf("Failed to disable interrupt: Not Supported\n");
@ -472,7 +472,7 @@ int dpaa_update_link_speed(char *if_name, int link_speed, int link_duplex)
}
#define DPAA_IOCTL_RESTART_LINK_AUTONEG \
_IOW(DPAA_IOCTL_MAGIC, 0x13, char *)
_IOW(DPAA_IOCTL_MAGIC, 0x13, char[IF_NAME_MAX_LEN])
int dpaa_restart_link_autoneg(char *if_name)
{
@ -481,7 +481,7 @@ int dpaa_restart_link_autoneg(char *if_name)
if (ret)
return ret;
ret = ioctl(fd, DPAA_IOCTL_RESTART_LINK_AUTONEG, &if_name);
ret = ioctl(fd, DPAA_IOCTL_RESTART_LINK_AUTONEG, if_name);
if (ret) {
if (errno == EINVAL)
printf("Failed to restart autoneg: Not Supported\n");