diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2011-03-08 01:48:57 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2011-03-08 01:48:57 +0100 |
commit | 68a31beb468f8a55b1e1fa631f055f49212da547 (patch) | |
tree | cddfef4ef66920ed002748218faaeb5312b14321 | |
parent | f4090456c4eaf46e7306732a95916da512c0c3d0 (diff) | |
download | ldd3-68a31beb468f8a55b1e1fa631f055f49212da547.tar.gz |
tty: tiny_tty: Remove struct file * argument from tty_operations handler functions
-rw-r--r-- | tty/tiny_tty.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tty/tiny_tty.c b/tty/tiny_tty.c index 456423d..64a74c7 100644 --- a/tty/tiny_tty.c +++ b/tty/tiny_tty.c @@ -315,7 +315,7 @@ static void tiny_set_termios(struct tty_struct *tty, struct ktermios *old_termio #define MSR_RI 0x20 #define MSR_DSR 0x40 -static int tiny_tiocmget(struct tty_struct *tty, struct file *file) +static int tiny_tiocmget(struct tty_struct *tty) { struct tiny_serial *tiny = tty->driver_data; @@ -334,8 +334,8 @@ static int tiny_tiocmget(struct tty_struct *tty, struct file *file) return result; } -static int tiny_tiocmset(struct tty_struct *tty, struct file *file, - unsigned int set, unsigned int clear) +static int tiny_tiocmset(struct tty_struct *tty, unsigned int set, + unsigned int clear) { struct tiny_serial *tiny = tty->driver_data; unsigned int mcr = tiny->mcr; @@ -373,8 +373,8 @@ static int tiny_proc_show(struct seq_file *m, void *v) } #define tiny_ioctl tiny_ioctl_tiocgserial -static int tiny_ioctl(struct tty_struct *tty, struct file *file, - unsigned int cmd, unsigned long arg) +static int tiny_ioctl(struct tty_struct *tty, unsigned int cmd, + unsigned long arg) { struct tiny_serial *tiny = tty->driver_data; @@ -408,8 +408,8 @@ static int tiny_ioctl(struct tty_struct *tty, struct file *file, #undef tiny_ioctl #define tiny_ioctl tiny_ioctl_tiocmiwait -static int tiny_ioctl(struct tty_struct *tty, struct file *file, - unsigned int cmd, unsigned long arg) +static int tiny_ioctl(struct tty_struct *tty, unsigned int cmd, + unsigned long arg) { struct tiny_serial *tiny = tty->driver_data; @@ -448,8 +448,8 @@ static int tiny_ioctl(struct tty_struct *tty, struct file *file, #undef tiny_ioctl #define tiny_ioctl tiny_ioctl_tiocgicount -static int tiny_ioctl(struct tty_struct *tty, struct file *file, - unsigned int cmd, unsigned long arg) +static int tiny_ioctl(struct tty_struct *tty, unsigned int cmd, + unsigned long arg) { struct tiny_serial *tiny = tty->driver_data; @@ -478,16 +478,16 @@ static int tiny_ioctl(struct tty_struct *tty, struct file *file, #undef tiny_ioctl /* the real tiny_ioctl function. The above is done to get the small functions in the book */ -static int tiny_ioctl(struct tty_struct *tty, struct file *file, - unsigned int cmd, unsigned long arg) +static int tiny_ioctl(struct tty_struct *tty, unsigned int cmd, + unsigned long arg) { switch (cmd) { case TIOCGSERIAL: - return tiny_ioctl_tiocgserial(tty, file, cmd, arg); + return tiny_ioctl_tiocgserial(tty, cmd, arg); case TIOCMIWAIT: - return tiny_ioctl_tiocmiwait(tty, file, cmd, arg); + return tiny_ioctl_tiocmiwait(tty, cmd, arg); case TIOCGICOUNT: - return tiny_ioctl_tiocgicount(tty, file, cmd, arg); + return tiny_ioctl_tiocgicount(tty, cmd, arg); } return -ENOIOCTLCMD; |