mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
mxser: remove MOXA_SET_BAUD_METHOD ioctl
1) The semantics are defined exactly nowhere. 2) The ioctl definition was never exposed to userspace, so noone should actually be reliably using this. 3) It's not even mentioned in any of the mxser utilities. Provided the above, remove this mxser-special ioctl. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210618061516.662-24-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
413d555e12
commit
ef3dff8a0a
@ -68,7 +68,6 @@
|
||||
#define MOXA_ASPP_MON (MOXA + 73)
|
||||
#define MOXA_ASPP_LSTATUS (MOXA + 74)
|
||||
#define MOXA_ASPP_MON_EXT (MOXA + 75)
|
||||
#define MOXA_SET_BAUD_METHOD (MOXA + 76)
|
||||
|
||||
/* --------------------------------------------------- */
|
||||
|
||||
@ -381,7 +380,6 @@ struct mxser_mstatus {
|
||||
static struct mxser_board mxser_boards[MXSER_BOARDS];
|
||||
static struct tty_driver *mxvar_sdriver;
|
||||
static struct mxser_log mxvar_log;
|
||||
static int mxser_set_baud_method[MXSER_PORTS + 1];
|
||||
|
||||
static void mxser_enable_must_enchance_mode(unsigned long baseio)
|
||||
{
|
||||
@ -738,8 +736,7 @@ static void mxser_change_speed(struct tty_struct *tty)
|
||||
if (!info->ioaddr)
|
||||
return;
|
||||
|
||||
if (mxser_set_baud_method[tty->index] == 0)
|
||||
mxser_set_baud(tty, tty_get_baud_rate(tty));
|
||||
mxser_set_baud(tty, tty_get_baud_rate(tty));
|
||||
|
||||
/* byte size and parity */
|
||||
switch (cflag & CSIZE) {
|
||||
@ -1788,14 +1785,6 @@ static int mxser_ioctl(struct tty_struct *tty,
|
||||
info->err_shadow = 0;
|
||||
return 0;
|
||||
}
|
||||
case MOXA_SET_BAUD_METHOD: {
|
||||
int method;
|
||||
|
||||
if (get_user(method, (int __user *)argp))
|
||||
return -EFAULT;
|
||||
mxser_set_baud_method[tty->index] = method;
|
||||
return put_user(method, (int __user *)argp);
|
||||
}
|
||||
default:
|
||||
return -ENOIOCTLCMD;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user