Commit 8cd92e65 authored by Jan Kiszka's avatar Jan Kiszka

cobalt/drivers: Ensure bidirectional IOCTL migration

Ensure that IOCTL switch-over is also prepared for the NRT-to-RT path.
While we didn't need this in practice for the changed drivers, it's
better to have this enabled in case driver developers derive from this
pattern.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent e932ce4a
......@@ -665,7 +665,7 @@ static int autotune_ioctl_nrt(struct rtdm_fd *fd, unsigned int request, void *ar
tuner = &uthread_tuner.tuner;
break;
default:
return -EINVAL;
return -ENOSYS;
}
ret = rtdm_copy_from_user(fd, &setup, arg, sizeof(setup));
......
......@@ -667,7 +667,7 @@ static int rtswitch_ioctl_nrt(struct rtdm_fd *fd,
return 0;
default:
return -ENOTTY;
return -ENOSYS;
}
}
......
......@@ -453,7 +453,7 @@ static int rt_tmbench_ioctl_nrt(struct rtdm_fd *fd,
err = rt_tmbench_stop(ctx, arg);
break;
default:
err = -EINVAL;
err = -ENOSYS;
}
return err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment