diff options
author | Alan Cox <alan@linux.intel.com> | 2011-02-14 11:27:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-17 14:59:56 -0500 |
commit | 6caa76b7786891b42b66a0e61e2c2fff2c884620 (patch) | |
tree | eb6e387e080a44680d6d8686999336e69ec97e71 /drivers/char/epca.c | |
parent | 00a0d0d65b61241a718d0aee96f46b9a2d93bf26 (diff) |
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>
Diffstat (limited to 'drivers/char/epca.c')
-rw-r--r-- | drivers/char/epca.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/epca.c b/drivers/char/epca.c index e5872b59f9cd..7ad3638967ae 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c | |||
@@ -175,9 +175,9 @@ static unsigned termios2digi_i(struct channel *ch, unsigned); | |||
175 | static unsigned termios2digi_c(struct channel *ch, unsigned); | 175 | static unsigned termios2digi_c(struct channel *ch, unsigned); |
176 | static void epcaparam(struct tty_struct *, struct channel *); | 176 | static void epcaparam(struct tty_struct *, struct channel *); |
177 | static void receive_data(struct channel *, struct tty_struct *tty); | 177 | static void receive_data(struct channel *, struct tty_struct *tty); |
178 | static int pc_ioctl(struct tty_struct *, struct file *, | 178 | static int pc_ioctl(struct tty_struct *, |
179 | unsigned int, unsigned long); | 179 | unsigned int, unsigned long); |
180 | static int info_ioctl(struct tty_struct *, struct file *, | 180 | static int info_ioctl(struct tty_struct *, |
181 | unsigned int, unsigned long); | 181 | unsigned int, unsigned long); |
182 | static void pc_set_termios(struct tty_struct *, struct ktermios *); | 182 | static void pc_set_termios(struct tty_struct *, struct ktermios *); |
183 | static void do_softint(struct work_struct *work); | 183 | static void do_softint(struct work_struct *work); |
@@ -1919,7 +1919,7 @@ static void receive_data(struct channel *ch, struct tty_struct *tty) | |||
1919 | tty_schedule_flip(tty); | 1919 | tty_schedule_flip(tty); |
1920 | } | 1920 | } |
1921 | 1921 | ||
1922 | static int info_ioctl(struct tty_struct *tty, struct file *file, | 1922 | static int info_ioctl(struct tty_struct *tty, |
1923 | unsigned int cmd, unsigned long arg) | 1923 | unsigned int cmd, unsigned long arg) |
1924 | { | 1924 | { |
1925 | switch (cmd) { | 1925 | switch (cmd) { |
@@ -2057,7 +2057,7 @@ static int pc_tiocmset(struct tty_struct *tty, | |||
2057 | return 0; | 2057 | return 0; |
2058 | } | 2058 | } |
2059 | 2059 | ||
2060 | static int pc_ioctl(struct tty_struct *tty, struct file *file, | 2060 | static int pc_ioctl(struct tty_struct *tty, |
2061 | unsigned int cmd, unsigned long arg) | 2061 | unsigned int cmd, unsigned long arg) |
2062 | { | 2062 | { |
2063 | digiflow_t dflow; | 2063 | digiflow_t dflow; |