diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-01-05 07:53:39 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-01-05 07:53:39 -0500 |
| commit | 5359c32eb7402124abc9964d5d53639fe0739cea (patch) | |
| tree | d77b6967fe8420678bb9d1d936855ac0699c196a /drivers/char/hvsi.c | |
| parent | 8916edef5888c5d8fe283714416a9ca95b4c3431 (diff) | |
| parent | fe0bdec68b77020281dc814805edfe594ae89e0f (diff) | |
Merge branch 'linus' into sched/urgent
Diffstat (limited to 'drivers/char/hvsi.c')
| -rw-r--r-- | drivers/char/hvsi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/hvsi.c b/drivers/char/hvsi.c index af055287271a..406f8742a260 100644 --- a/drivers/char/hvsi.c +++ b/drivers/char/hvsi.c | |||
| @@ -997,14 +997,14 @@ out: | |||
| 997 | 997 | ||
| 998 | static int hvsi_write_room(struct tty_struct *tty) | 998 | static int hvsi_write_room(struct tty_struct *tty) |
| 999 | { | 999 | { |
| 1000 | struct hvsi_struct *hp = (struct hvsi_struct *)tty->driver_data; | 1000 | struct hvsi_struct *hp = tty->driver_data; |
| 1001 | 1001 | ||
| 1002 | return N_OUTBUF - hp->n_outbuf; | 1002 | return N_OUTBUF - hp->n_outbuf; |
| 1003 | } | 1003 | } |
| 1004 | 1004 | ||
| 1005 | static int hvsi_chars_in_buffer(struct tty_struct *tty) | 1005 | static int hvsi_chars_in_buffer(struct tty_struct *tty) |
| 1006 | { | 1006 | { |
| 1007 | struct hvsi_struct *hp = (struct hvsi_struct *)tty->driver_data; | 1007 | struct hvsi_struct *hp = tty->driver_data; |
| 1008 | 1008 | ||
| 1009 | return hp->n_outbuf; | 1009 | return hp->n_outbuf; |
| 1010 | } | 1010 | } |
| @@ -1070,7 +1070,7 @@ out: | |||
| 1070 | */ | 1070 | */ |
| 1071 | static void hvsi_throttle(struct tty_struct *tty) | 1071 | static void hvsi_throttle(struct tty_struct *tty) |
| 1072 | { | 1072 | { |
| 1073 | struct hvsi_struct *hp = (struct hvsi_struct *)tty->driver_data; | 1073 | struct hvsi_struct *hp = tty->driver_data; |
| 1074 | 1074 | ||
| 1075 | pr_debug("%s\n", __func__); | 1075 | pr_debug("%s\n", __func__); |
| 1076 | 1076 | ||
| @@ -1079,7 +1079,7 @@ static void hvsi_throttle(struct tty_struct *tty) | |||
| 1079 | 1079 | ||
| 1080 | static void hvsi_unthrottle(struct tty_struct *tty) | 1080 | static void hvsi_unthrottle(struct tty_struct *tty) |
| 1081 | { | 1081 | { |
| 1082 | struct hvsi_struct *hp = (struct hvsi_struct *)tty->driver_data; | 1082 | struct hvsi_struct *hp = tty->driver_data; |
| 1083 | unsigned long flags; | 1083 | unsigned long flags; |
| 1084 | int shouldflip = 0; | 1084 | int shouldflip = 0; |
| 1085 | 1085 | ||
| @@ -1100,7 +1100,7 @@ static void hvsi_unthrottle(struct tty_struct *tty) | |||
| 1100 | 1100 | ||
| 1101 | static int hvsi_tiocmget(struct tty_struct *tty, struct file *file) | 1101 | static int hvsi_tiocmget(struct tty_struct *tty, struct file *file) |
| 1102 | { | 1102 | { |
| 1103 | struct hvsi_struct *hp = (struct hvsi_struct *)tty->driver_data; | 1103 | struct hvsi_struct *hp = tty->driver_data; |
| 1104 | 1104 | ||
| 1105 | hvsi_get_mctrl(hp); | 1105 | hvsi_get_mctrl(hp); |
| 1106 | return hp->mctrl; | 1106 | return hp->mctrl; |
| @@ -1109,7 +1109,7 @@ static int hvsi_tiocmget(struct tty_struct *tty, struct file *file) | |||
| 1109 | static int hvsi_tiocmset(struct tty_struct *tty, struct file *file, | 1109 | static int hvsi_tiocmset(struct tty_struct *tty, struct file *file, |
| 1110 | unsigned int set, unsigned int clear) | 1110 | unsigned int set, unsigned int clear) |
| 1111 | { | 1111 | { |
| 1112 | struct hvsi_struct *hp = (struct hvsi_struct *)tty->driver_data; | 1112 | struct hvsi_struct *hp = tty->driver_data; |
| 1113 | unsigned long flags; | 1113 | unsigned long flags; |
| 1114 | uint16_t new_mctrl; | 1114 | uint16_t new_mctrl; |
| 1115 | 1115 | ||
