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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
60b33c133c
commit
20b9d17715
@ -324,7 +324,7 @@ struct hso_device {
|
||||
/* Prototypes */
|
||||
/*****************************************************************************/
|
||||
/* Serial driver functions */
|
||||
static int hso_serial_tiocmset(struct tty_struct *tty, struct file *file,
|
||||
static int hso_serial_tiocmset(struct tty_struct *tty,
|
||||
unsigned int set, unsigned int clear);
|
||||
static void ctrl_callback(struct urb *urb);
|
||||
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)
|
||||
|
||||
/* done */
|
||||
if (result)
|
||||
hso_serial_tiocmset(tty, NULL, TIOCM_RTS | TIOCM_DTR, 0);
|
||||
hso_serial_tiocmset(tty, TIOCM_RTS | TIOCM_DTR, 0);
|
||||
err_out:
|
||||
mutex_unlock(&serial->parent->mutex);
|
||||
return result;
|
||||
@ -1687,7 +1687,7 @@ static int hso_serial_tiocmget(struct tty_struct *tty)
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int hso_serial_tiocmset(struct tty_struct *tty, struct file *file,
|
||||
static int hso_serial_tiocmset(struct tty_struct *tty,
|
||||
unsigned int set, unsigned int clear)
|
||||
{
|
||||
int val = 0;
|
||||
|
Reference in New Issue
Block a user