diff options
author | Alan Cox <alan@linux.intel.com> | 2011-02-14 11:26:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-17 14:52:43 -0500 |
commit | 20b9d17715017ae4dd4ec87fabc36d33b9de708e (patch) | |
tree | 64e9c4ff845844298f9056357d9f4914802207f8 /drivers/net | |
parent | 60b33c133ca0b7c0b6072c87234b63fee6e80558 (diff) |
tiocmset: kill the file pointer argument
Doing tiocmget was such fun we should do tiocmset as well for the same
reasons
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/irda/irtty-sir.c | 2 | ||||
-rw-r--r-- | drivers/net/usb/hso.c | 6 | ||||
-rw-r--r-- | drivers/net/wan/pc300_tty.c | 5 |
3 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/irda/irtty-sir.c b/drivers/net/irda/irtty-sir.c index ee1dde52e8fc..3352b2443e58 100644 --- a/drivers/net/irda/irtty-sir.c +++ b/drivers/net/irda/irtty-sir.c | |||
@@ -167,7 +167,7 @@ static int irtty_set_dtr_rts(struct sir_dev *dev, int dtr, int rts) | |||
167 | * let's be careful... Jean II | 167 | * let's be careful... Jean II |
168 | */ | 168 | */ |
169 | IRDA_ASSERT(priv->tty->ops->tiocmset != NULL, return -1;); | 169 | IRDA_ASSERT(priv->tty->ops->tiocmset != NULL, return -1;); |
170 | priv->tty->ops->tiocmset(priv->tty, NULL, set, clear); | 170 | priv->tty->ops->tiocmset(priv->tty, set, clear); |
171 | 171 | ||
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 7c68c456c035..956e1d6e72a5 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -324,7 +324,7 @@ struct hso_device { | |||
324 | /* Prototypes */ | 324 | /* Prototypes */ |
325 | /*****************************************************************************/ | 325 | /*****************************************************************************/ |
326 | /* Serial driver functions */ | 326 | /* Serial driver functions */ |
327 | static int hso_serial_tiocmset(struct tty_struct *tty, struct file *file, | 327 | static int hso_serial_tiocmset(struct tty_struct *tty, |
328 | unsigned int set, unsigned int clear); | 328 | unsigned int set, unsigned int clear); |
329 | static void ctrl_callback(struct urb *urb); | 329 | static void ctrl_callback(struct urb *urb); |
330 | static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial); | 330 | static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial); |
@@ -1335,7 +1335,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp) | |||
1335 | 1335 | ||
1336 | /* done */ | 1336 | /* done */ |
1337 | if (result) | 1337 | if (result) |
1338 | hso_serial_tiocmset(tty, NULL, TIOCM_RTS | TIOCM_DTR, 0); | 1338 | hso_serial_tiocmset(tty, TIOCM_RTS | TIOCM_DTR, 0); |
1339 | err_out: | 1339 | err_out: |
1340 | mutex_unlock(&serial->parent->mutex); | 1340 | mutex_unlock(&serial->parent->mutex); |
1341 | return result; | 1341 | return result; |
@@ -1687,7 +1687,7 @@ static int hso_serial_tiocmget(struct tty_struct *tty) | |||
1687 | return retval; | 1687 | return retval; |
1688 | } | 1688 | } |
1689 | 1689 | ||
1690 | static int hso_serial_tiocmset(struct tty_struct *tty, struct file *file, | 1690 | static int hso_serial_tiocmset(struct tty_struct *tty, |
1691 | unsigned int set, unsigned int clear) | 1691 | unsigned int set, unsigned int clear) |
1692 | { | 1692 | { |
1693 | int val = 0; | 1693 | int val = 0; |
diff --git a/drivers/net/wan/pc300_tty.c b/drivers/net/wan/pc300_tty.c index d999e54a7730..1c65d1c33873 100644 --- a/drivers/net/wan/pc300_tty.c +++ b/drivers/net/wan/pc300_tty.c | |||
@@ -131,8 +131,7 @@ static void cpc_tty_trace(pc300dev_t *dev, char* buf, int len, char rxtx); | |||
131 | static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char); | 131 | static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char); |
132 | static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char); | 132 | static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char); |
133 | 133 | ||
134 | static int pc300_tiocmset(struct tty_struct *, struct file *, | 134 | static int pc300_tiocmset(struct tty_struct *, unsigned int, unsigned int); |
135 | unsigned int, unsigned int); | ||
136 | static int pc300_tiocmget(struct tty_struct *); | 135 | static int pc300_tiocmget(struct tty_struct *); |
137 | 136 | ||
138 | /* functions called by PC300 driver */ | 137 | /* functions called by PC300 driver */ |
@@ -543,7 +542,7 @@ static int cpc_tty_chars_in_buffer(struct tty_struct *tty) | |||
543 | return 0; | 542 | return 0; |
544 | } | 543 | } |
545 | 544 | ||
546 | static int pc300_tiocmset(struct tty_struct *tty, struct file *file, | 545 | static int pc300_tiocmset(struct tty_struct *tty, |
547 | unsigned int set, unsigned int clear) | 546 | unsigned int set, unsigned int clear) |
548 | { | 547 | { |
549 | st_cpc_tty_area *cpc_tty; | 548 | st_cpc_tty_area *cpc_tty; |