mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
tty: now phase out the ioctl file pointer for good
Only oddities here are a couple of drivers that bogusly called the ldisc helpers instead of returning -ENOIOCTLCMD. Fix the bug and the rest goes away. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
00a0d0d65b
commit
6caa76b778
41 changed files with 66 additions and 78 deletions
|
@ -98,8 +98,7 @@
|
|||
*
|
||||
* Note: Do not call this function directly, call tty_write_room
|
||||
*
|
||||
* int (*ioctl)(struct tty_struct *tty, struct file * file,
|
||||
* unsigned int cmd, unsigned long arg);
|
||||
* int (*ioctl)(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
|
||||
*
|
||||
* This routine allows the tty driver to implement
|
||||
* device-specific ioctls. If the ioctl number passed in cmd
|
||||
|
@ -107,7 +106,7 @@
|
|||
*
|
||||
* Optional
|
||||
*
|
||||
* long (*compat_ioctl)(struct tty_struct *tty, struct file * file,
|
||||
* long (*compat_ioctl)(struct tty_struct *tty,,
|
||||
* unsigned int cmd, unsigned long arg);
|
||||
*
|
||||
* implement ioctl processing for 32 bit process on 64 bit system
|
||||
|
@ -256,9 +255,9 @@ struct tty_operations {
|
|||
void (*flush_chars)(struct tty_struct *tty);
|
||||
int (*write_room)(struct tty_struct *tty);
|
||||
int (*chars_in_buffer)(struct tty_struct *tty);
|
||||
int (*ioctl)(struct tty_struct *tty, struct file * file,
|
||||
int (*ioctl)(struct tty_struct *tty,
|
||||
unsigned int cmd, unsigned long arg);
|
||||
long (*compat_ioctl)(struct tty_struct *tty, struct file * file,
|
||||
long (*compat_ioctl)(struct tty_struct *tty,
|
||||
unsigned int cmd, unsigned long arg);
|
||||
void (*set_termios)(struct tty_struct *tty, struct ktermios * old);
|
||||
void (*throttle)(struct tty_struct * tty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue