diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
commit | e6bee325e49f17c65c1fd66e9e8b348c85788341 (patch) | |
tree | bcc9e5d8e82efa9009edd481a837cc3626360091 /drivers/isdn | |
parent | a5e6b135bdff649e4330f98e2e80dbb1984f7e77 (diff) | |
parent | 6ae705b23be8da52d3163be9d81e9b767876aaf9 (diff) |
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (76 commits)
pch_uart: reference clock on CM-iTC
pch_phub: add new device ML7213
n_gsm: fix UIH control byte : P bit should be 0
n_gsm: add a documentation
serial: msm_serial_hs: Add MSM high speed UART driver
tty_audit: fix tty_audit_add_data live lock on audit disabled
tty: move cd1865.h to drivers/staging/tty/
Staging: tty: fix build with epca.c driver
pcmcia: synclink_cs: fix prototype for mgslpc_ioctl()
Staging: generic_serial: fix double locking bug
nozomi: don't use flush_scheduled_work()
tty/serial: Relax the device_type restriction from of_serial
MAINTAINERS: Update HVC file patterns
tty: phase out of ioctl file pointer for tty3270 as well
tty: forgot to remove ipwireless from drivers/char/pcmcia/Makefile
pch_uart: Fix DMA channel miss-setting issue.
pch_uart: fix exclusive access issue
pch_uart: fix auto flow control miss-setting issue
pch_uart: fix uart clock setting issue
pch_uart : Use dev_xxx not pr_xxx
...
Fix up trivial conflicts in drivers/misc/pch_phub.c (same patch applied
twice, then changes to the same area in one branch)
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/capi/capi.c | 10 | ||||
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 12 | ||||
-rw-r--r-- | drivers/isdn/gigaset/ser-gigaset.c | 2 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 7 |
4 files changed, 12 insertions, 19 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index f80a7c48a35f..0d7088367038 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
@@ -1219,16 +1219,10 @@ static int capinc_tty_chars_in_buffer(struct tty_struct *tty) | |||
1219 | return mp->outbytes; | 1219 | return mp->outbytes; |
1220 | } | 1220 | } |
1221 | 1221 | ||
1222 | static int capinc_tty_ioctl(struct tty_struct *tty, struct file * file, | 1222 | static int capinc_tty_ioctl(struct tty_struct *tty, |
1223 | unsigned int cmd, unsigned long arg) | 1223 | unsigned int cmd, unsigned long arg) |
1224 | { | 1224 | { |
1225 | int error = 0; | 1225 | return -ENOIOCTLCMD; |
1226 | switch (cmd) { | ||
1227 | default: | ||
1228 | error = n_tty_ioctl_helper(tty, file, cmd, arg); | ||
1229 | break; | ||
1230 | } | ||
1231 | return error; | ||
1232 | } | 1226 | } |
1233 | 1227 | ||
1234 | static void capinc_tty_set_termios(struct tty_struct *tty, struct ktermios * old) | 1228 | static void capinc_tty_set_termios(struct tty_struct *tty, struct ktermios * old) |
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index bb710d16a526..59de638225fe 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -115,15 +115,15 @@ static int if_config(struct cardstate *cs, int *arg) | |||
115 | 115 | ||
116 | static int if_open(struct tty_struct *tty, struct file *filp); | 116 | static int if_open(struct tty_struct *tty, struct file *filp); |
117 | static void if_close(struct tty_struct *tty, struct file *filp); | 117 | static void if_close(struct tty_struct *tty, struct file *filp); |
118 | static int if_ioctl(struct tty_struct *tty, struct file *file, | 118 | static int if_ioctl(struct tty_struct *tty, |
119 | unsigned int cmd, unsigned long arg); | 119 | unsigned int cmd, unsigned long arg); |
120 | static int if_write_room(struct tty_struct *tty); | 120 | static int if_write_room(struct tty_struct *tty); |
121 | static int if_chars_in_buffer(struct tty_struct *tty); | 121 | static int if_chars_in_buffer(struct tty_struct *tty); |
122 | static void if_throttle(struct tty_struct *tty); | 122 | static void if_throttle(struct tty_struct *tty); |
123 | static void if_unthrottle(struct tty_struct *tty); | 123 | static void if_unthrottle(struct tty_struct *tty); |
124 | static void if_set_termios(struct tty_struct *tty, struct ktermios *old); | 124 | static void if_set_termios(struct tty_struct *tty, struct ktermios *old); |
125 | static int if_tiocmget(struct tty_struct *tty, struct file *file); | 125 | static int if_tiocmget(struct tty_struct *tty); |
126 | static int if_tiocmset(struct tty_struct *tty, struct file *file, | 126 | static int if_tiocmset(struct tty_struct *tty, |
127 | unsigned int set, unsigned int clear); | 127 | unsigned int set, unsigned int clear); |
128 | static int if_write(struct tty_struct *tty, | 128 | static int if_write(struct tty_struct *tty, |
129 | const unsigned char *buf, int count); | 129 | const unsigned char *buf, int count); |
@@ -205,7 +205,7 @@ static void if_close(struct tty_struct *tty, struct file *filp) | |||
205 | module_put(cs->driver->owner); | 205 | module_put(cs->driver->owner); |
206 | } | 206 | } |
207 | 207 | ||
208 | static int if_ioctl(struct tty_struct *tty, struct file *file, | 208 | static int if_ioctl(struct tty_struct *tty, |
209 | unsigned int cmd, unsigned long arg) | 209 | unsigned int cmd, unsigned long arg) |
210 | { | 210 | { |
211 | struct cardstate *cs; | 211 | struct cardstate *cs; |
@@ -280,7 +280,7 @@ static int if_ioctl(struct tty_struct *tty, struct file *file, | |||
280 | return retval; | 280 | return retval; |
281 | } | 281 | } |
282 | 282 | ||
283 | static int if_tiocmget(struct tty_struct *tty, struct file *file) | 283 | static int if_tiocmget(struct tty_struct *tty) |
284 | { | 284 | { |
285 | struct cardstate *cs; | 285 | struct cardstate *cs; |
286 | int retval; | 286 | int retval; |
@@ -303,7 +303,7 @@ static int if_tiocmget(struct tty_struct *tty, struct file *file) | |||
303 | return retval; | 303 | return retval; |
304 | } | 304 | } |
305 | 305 | ||
306 | static int if_tiocmset(struct tty_struct *tty, struct file *file, | 306 | static int if_tiocmset(struct tty_struct *tty, |
307 | unsigned int set, unsigned int clear) | 307 | unsigned int set, unsigned int clear) |
308 | { | 308 | { |
309 | struct cardstate *cs; | 309 | struct cardstate *cs; |
diff --git a/drivers/isdn/gigaset/ser-gigaset.c b/drivers/isdn/gigaset/ser-gigaset.c index 0ef09d0eb96b..86a5c4f7775e 100644 --- a/drivers/isdn/gigaset/ser-gigaset.c +++ b/drivers/isdn/gigaset/ser-gigaset.c | |||
@@ -440,7 +440,7 @@ static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, | |||
440 | if (!set && !clear) | 440 | if (!set && !clear) |
441 | return 0; | 441 | return 0; |
442 | gig_dbg(DEBUG_IF, "tiocmset set %x clear %x", set, clear); | 442 | gig_dbg(DEBUG_IF, "tiocmset set %x clear %x", set, clear); |
443 | return tty->ops->tiocmset(tty, NULL, set, clear); | 443 | return tty->ops->tiocmset(tty, set, clear); |
444 | } | 444 | } |
445 | 445 | ||
446 | static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) | 446 | static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) |
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index c463162843ba..3d88f15aa218 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -1345,7 +1345,7 @@ isdn_tty_get_lsr_info(modem_info * info, uint __user * value) | |||
1345 | 1345 | ||
1346 | 1346 | ||
1347 | static int | 1347 | static int |
1348 | isdn_tty_tiocmget(struct tty_struct *tty, struct file *file) | 1348 | isdn_tty_tiocmget(struct tty_struct *tty) |
1349 | { | 1349 | { |
1350 | modem_info *info = (modem_info *) tty->driver_data; | 1350 | modem_info *info = (modem_info *) tty->driver_data; |
1351 | u_char control, status; | 1351 | u_char control, status; |
@@ -1372,7 +1372,7 @@ isdn_tty_tiocmget(struct tty_struct *tty, struct file *file) | |||
1372 | } | 1372 | } |
1373 | 1373 | ||
1374 | static int | 1374 | static int |
1375 | isdn_tty_tiocmset(struct tty_struct *tty, struct file *file, | 1375 | isdn_tty_tiocmset(struct tty_struct *tty, |
1376 | unsigned int set, unsigned int clear) | 1376 | unsigned int set, unsigned int clear) |
1377 | { | 1377 | { |
1378 | modem_info *info = (modem_info *) tty->driver_data; | 1378 | modem_info *info = (modem_info *) tty->driver_data; |
@@ -1413,8 +1413,7 @@ isdn_tty_tiocmset(struct tty_struct *tty, struct file *file, | |||
1413 | } | 1413 | } |
1414 | 1414 | ||
1415 | static int | 1415 | static int |
1416 | isdn_tty_ioctl(struct tty_struct *tty, struct file *file, | 1416 | isdn_tty_ioctl(struct tty_struct *tty, uint cmd, ulong arg) |
1417 | uint cmd, ulong arg) | ||
1418 | { | 1417 | { |
1419 | modem_info *info = (modem_info *) tty->driver_data; | 1418 | modem_info *info = (modem_info *) tty->driver_data; |
1420 | int retval; | 1419 | int retval; |