]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
tiocmset: kill the file pointer argument
authorAlan Cox <alan@linux.intel.com>
Mon, 14 Feb 2011 16:26:50 +0000 (16:26 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 19:52:43 +0000 (11:52 -0800)
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>
70 files changed:
drivers/char/amiserial.c
drivers/char/cyclades.c
drivers/char/epca.c
drivers/char/ip2/ip2main.c
drivers/char/isicom.c
drivers/char/istallion.c
drivers/char/moxa.c
drivers/char/mxser.c
drivers/char/nozomi.c
drivers/char/pcmcia/ipwireless/tty.c
drivers/char/pcmcia/synclink_cs.c
drivers/char/riscom8.c
drivers/char/rocket.c
drivers/char/serial167.c
drivers/char/specialix.c
drivers/char/stallion.c
drivers/char/sx.c
drivers/char/synclink.c
drivers/char/synclink_gt.c
drivers/char/synclinkmp.c
drivers/isdn/gigaset/interface.c
drivers/isdn/gigaset/ser-gigaset.c
drivers/isdn/i4l/isdn_tty.c
drivers/mmc/card/sdio_uart.c
drivers/net/irda/irtty-sir.c
drivers/net/usb/hso.c
drivers/net/wan/pc300_tty.c
drivers/staging/quatech_usb2/quatech_usb2.c
drivers/staging/serqt_usb2/serqt_usb2.c
drivers/tty/hvc/hvsi.c
drivers/tty/n_gsm.c
drivers/tty/serial/68360serial.c
drivers/tty/serial/crisv10.c
drivers/tty/serial/ifx6x60.c
drivers/tty/serial/serial_core.c
drivers/tty/tty_io.c
drivers/usb/class/cdc-acm.c
drivers/usb/serial/ark3116.c
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/ch341.c
drivers/usb/serial/cp210x.c
drivers/usb/serial/cypress_m8.c
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_ti.c
drivers/usb/serial/iuu_phoenix.c
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.h
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kobil_sct.c
drivers/usb/serial/mct_u232.c
drivers/usb/serial/mos7720.c
drivers/usb/serial/mos7840.c
drivers/usb/serial/oti6858.c
drivers/usb/serial/pl2303.c
drivers/usb/serial/sierra.c
drivers/usb/serial/spcp8x5.c
drivers/usb/serial/ssu100.c
drivers/usb/serial/ti_usb_3410_5052.c
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb-wwan.h
drivers/usb/serial/usb_wwan.c
drivers/usb/serial/whiteheat.c
include/linux/tty_driver.h
include/linux/usb/serial.h
include/net/irda/ircomm_tty.h
net/bluetooth/rfcomm/tty.c
net/irda/ircomm/ircomm_tty_ioctl.c

index bc67e68390596ea9f08af9cc34d7dd501628d84e..5c15fad71ad29cf00a871876baa385eecf63e9d3 100644 (file)
@@ -1216,8 +1216,8 @@ static int rs_tiocmget(struct tty_struct *tty)
                | (!(status  & SER_CTS) ? TIOCM_CTS : 0);
 }
 
-static int rs_tiocmset(struct tty_struct *tty, struct file *file,
-                      unsigned int set, unsigned int clear)
+static int rs_tiocmset(struct tty_struct *tty, unsigned int set,
+                                               unsigned int clear)
 {
        struct async_struct * info = tty->driver_data;
        unsigned long flags;
index e7945ddacd18c1bd8ece63e22bdd7cbf8c46809c..942b6f2b70a484ff13ae6b2c0963a8a165b10564 100644 (file)
@@ -2483,7 +2483,7 @@ end:
 }                              /* cy_tiomget */
 
 static int
-cy_tiocmset(struct tty_struct *tty, struct file *file,
+cy_tiocmset(struct tty_struct *tty,
                unsigned int set, unsigned int clear)
 {
        struct cyclades_port *info = tty->driver_data;
index ecf6f0a889fcb355252a0777da31a00f59498db2..e5872b59f9cddfb95f9f0ebc744dec1f87343bd3 100644 (file)
@@ -2015,7 +2015,7 @@ static int pc_tiocmget(struct tty_struct *tty)
        return mflag;
 }
 
-static int pc_tiocmset(struct tty_struct *tty, struct file *file,
+static int pc_tiocmset(struct tty_struct *tty,
                       unsigned int set, unsigned int clear)
 {
        struct channel *ch = tty->driver_data;
@@ -2081,7 +2081,7 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
        case TIOCMODS:
                if (get_user(mstat, (unsigned __user *)argp))
                        return -EFAULT;
-               return pc_tiocmset(tty, file, mstat, ~mstat);
+               return pc_tiocmset(tty, mstat, ~mstat);
        case TIOCSDTR:
                spin_lock_irqsave(&epca_lock, flags);
                ch->omodem |= ch->m_dtr;
index 476cd087118e4d0339fd78467d640ecbd0701e5c..d5f866c7c6726732bf471e51498e2d4dcb53cbc0 100644 (file)
@@ -182,7 +182,7 @@ static void ip2_stop(PTTY);
 static void ip2_start(PTTY);
 static void ip2_hangup(PTTY);
 static int  ip2_tiocmget(struct tty_struct *tty);
-static int  ip2_tiocmset(struct tty_struct *tty, struct file *file,
+static int  ip2_tiocmset(struct tty_struct *tty,
                         unsigned int set, unsigned int clear);
 static int ip2_get_icount(struct tty_struct *tty,
                struct serial_icounter_struct *icount);
@@ -2085,7 +2085,7 @@ static int ip2_tiocmget(struct tty_struct *tty)
              | ((pCh->dataSetIn  & I2_CTS) ? TIOCM_CTS : 0);
 }
 
-static int ip2_tiocmset(struct tty_struct *tty, struct file *file,
+static int ip2_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear)
 {
        i2ChanStrPtr pCh = DevTable[tty->index];
index 836370bc04c22fe70bc0d093d811148faa100ce8..60f4d8ae7a495f06e6080055660e01213da04f53 100644 (file)
@@ -1082,8 +1082,8 @@ static int isicom_tiocmget(struct tty_struct *tty)
                ((status & ISI_RI ) ? TIOCM_RI  : 0);
 }
 
-static int isicom_tiocmset(struct tty_struct *tty, struct file *file,
-       unsigned int set, unsigned int clear)
+static int isicom_tiocmset(struct tty_struct *tty,
+                                       unsigned int set, unsigned int clear)
 {
        struct isi_port *port = tty->driver_data;
        unsigned long flags;
index 7843a847b76a5547f589f8a65edd87008fddb437..763b58d582551c0dea49b6f316025a53aad1d25e 100644 (file)
@@ -1524,7 +1524,7 @@ static int stli_tiocmget(struct tty_struct *tty)
        return stli_mktiocm(portp->asig.sigvalue);
 }
 
-static int stli_tiocmset(struct tty_struct *tty, struct file *file,
+static int stli_tiocmset(struct tty_struct *tty,
                         unsigned int set, unsigned int clear)
 {
        struct stliport *portp = tty->driver_data;
index fdf069bb702f5c167ce46a4439281c3403d6f340..9f4cd8968a5a1b44186d559a642de85d2865aeb9 100644 (file)
@@ -200,7 +200,7 @@ static void moxa_stop(struct tty_struct *);
 static void moxa_start(struct tty_struct *);
 static void moxa_hangup(struct tty_struct *);
 static int moxa_tiocmget(struct tty_struct *tty);
-static int moxa_tiocmset(struct tty_struct *tty, struct file *file,
+static int moxa_tiocmset(struct tty_struct *tty,
                         unsigned int set, unsigned int clear);
 static void moxa_poll(unsigned long);
 static void moxa_set_tty_param(struct tty_struct *, struct ktermios *);
@@ -1277,7 +1277,7 @@ static int moxa_tiocmget(struct tty_struct *tty)
        return flag;
 }
 
-static int moxa_tiocmset(struct tty_struct *tty, struct file *file,
+static int moxa_tiocmset(struct tty_struct *tty,
                         unsigned int set, unsigned int clear)
 {
        struct moxa_port *ch;
index 4d2f03ec06cdb7072f9ecb72fb8f6895fe17f10b..150a862c498901b28c11581e75040a59fd59487f 100644 (file)
@@ -1347,7 +1347,7 @@ static int mxser_tiocmget(struct tty_struct *tty)
                    ((status & UART_MSR_CTS) ? TIOCM_CTS : 0);
 }
 
-static int mxser_tiocmset(struct tty_struct *tty, struct file *file,
+static int mxser_tiocmset(struct tty_struct *tty,
                unsigned int set, unsigned int clear)
 {
        struct mxser_port *info = tty->driver_data;
index 0e1dff2ffb1e1b30cd7da01f8e71ad7fc2da502c..1b74c48c40167f242c1072b7e3fda1fbf78459c9 100644 (file)
@@ -1767,8 +1767,8 @@ static int ntty_tiocmget(struct tty_struct *tty)
 }
 
 /* Sets io controls parameters */
-static int ntty_tiocmset(struct tty_struct *tty, struct file *file,
-       unsigned int set, unsigned int clear)
+static int ntty_tiocmset(struct tty_struct *tty,
+                                       unsigned int set, unsigned int clear)
 {
        struct nozomi *dc = get_dc_by_tty(tty);
        unsigned long flags;
index 7d2ef4909a73f919ca9599eb420641cd1b0a4981..748190dfbab0c19da8a68448237080c81cb43efb 100644 (file)
@@ -410,7 +410,7 @@ static int ipw_tiocmget(struct tty_struct *linux_tty)
 }
 
 static int
-ipw_tiocmset(struct tty_struct *linux_tty, struct file *file,
+ipw_tiocmset(struct tty_struct *linux_tty,
             unsigned int set, unsigned int clear)
 {
        struct ipw_tty *tty = linux_tty->driver_data;
index 7b68ba6609fee666f771cb2872401db654715f17..02127cad0980e6eaa986910ce0f329daf535a3e2 100644 (file)
@@ -419,8 +419,8 @@ static void bh_status(MGSLPC_INFO *info);
  * ioctl handlers
  */
 static int tiocmget(struct tty_struct *tty);
-static int tiocmset(struct tty_struct *tty, struct file *file,
-                   unsigned int set, unsigned int clear);
+static int tiocmset(struct tty_struct *tty,
+                                       unsigned int set, unsigned int clear);
 static int get_stats(MGSLPC_INFO *info, struct mgsl_icount __user *user_icount);
 static int get_params(MGSLPC_INFO *info, MGSL_PARAMS __user *user_params);
 static int set_params(MGSLPC_INFO *info, MGSL_PARAMS __user *new_params, struct tty_struct *tty);
@@ -2139,7 +2139,7 @@ static int tiocmget(struct tty_struct *tty)
 
 /* set modem control signals (DTR/RTS)
  */
-static int tiocmset(struct tty_struct *tty, struct file *file,
+static int tiocmset(struct tty_struct *tty,
                    unsigned int set, unsigned int clear)
 {
        MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data;
index 5d0c98456c93089f2542d7b8b0044299bc17c76c..3666decc6438964db6346f9345a5a2a8cd9b4dba 100644 (file)
@@ -1115,8 +1115,8 @@ static int rc_tiocmget(struct tty_struct *tty)
        return result;
 }
 
-static int rc_tiocmset(struct tty_struct *tty, struct file *file,
-                      unsigned int set, unsigned int clear)
+static int rc_tiocmset(struct tty_struct *tty,
+                                      unsigned int set, unsigned int clear)
 {
        struct riscom_port *port = tty->driver_data;
        unsigned long flags;
index 75e98efbc8e949e288361fe56b588cab5ccb9218..36c108811a81c22abb0123085791b4b3e6e7117e 100644 (file)
@@ -1189,8 +1189,8 @@ static int rp_tiocmget(struct tty_struct *tty)
 /* 
  *  Sets the modem control lines
  */
-static int rp_tiocmset(struct tty_struct *tty, struct file *file,
-                   unsigned int set, unsigned int clear)
+static int rp_tiocmset(struct tty_struct *tty,
+                               unsigned int set, unsigned int clear)
 {
        struct r_port *info = tty->driver_data;
 
index fda90643ead7604356e7ee7ce8bba129dde75aae..89ac542ffff26f002d046f19461e3ff33f3c5510 100644 (file)
@@ -1331,8 +1331,7 @@ static int cy_tiocmget(struct tty_struct *tty)
 }                              /* cy_tiocmget */
 
 static int
-cy_tiocmset(struct tty_struct *tty, struct file *file,
-           unsigned int set, unsigned int clear)
+cy_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear)
 {
        struct cyclades_port *info = tty->driver_data;
        int channel;
index bfecfbef0895a64ef55d553a21bb355093d2c6af..a6b23847e4a75de114214ff140208ab530a93f86 100644 (file)
@@ -1778,7 +1778,7 @@ static int sx_tiocmget(struct tty_struct *tty)
 }
 
 
-static int sx_tiocmset(struct tty_struct *tty, struct file *file,
+static int sx_tiocmset(struct tty_struct *tty,
                       unsigned int set, unsigned int clear)
 {
        struct specialix_port *port = tty->driver_data;
index 8c2bf3fb5b8978fdb8b2fe5e456bf6047819934c..c42dbffbed16b47caea6cecfd29466e88171ff2f 100644 (file)
@@ -1107,7 +1107,7 @@ static int stl_tiocmget(struct tty_struct *tty)
        return stl_getsignals(portp);
 }
 
-static int stl_tiocmset(struct tty_struct *tty, struct file *file,
+static int stl_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear)
 {
        struct stlport  *portp;
index f46214e60d0cd6cf8130ca15f3ba0b4473aff541..342c6ae67da56e1cc276b48d28b4895acde812c5 100644 (file)
@@ -1879,8 +1879,8 @@ static int sx_tiocmget(struct tty_struct *tty)
        return sx_getsignals(port);
 }
 
-static int sx_tiocmset(struct tty_struct *tty, struct file *file,
-               unsigned int set, unsigned int clear)
+static int sx_tiocmset(struct tty_struct *tty,
+                                       unsigned int set, unsigned int clear)
 {
        struct sx_port *port = tty->driver_data;
        int rts = -1, dtr = -1;
index d359e092904adc37986f0e3686362b4a4bfb3fff..691e1094c20b2a33d3dd85c4eab3f210f264d688 100644 (file)
@@ -824,7 +824,7 @@ static isr_dispatch_func UscIsrTable[7] =
  * ioctl call handlers
  */
 static int tiocmget(struct tty_struct *tty);
-static int tiocmset(struct tty_struct *tty, struct file *file,
+static int tiocmset(struct tty_struct *tty,
                    unsigned int set, unsigned int clear);
 static int mgsl_get_stats(struct mgsl_struct * info, struct mgsl_icount
        __user *user_icount);
@@ -2871,8 +2871,8 @@ static int tiocmget(struct tty_struct *tty)
 
 /* set modem control signals (DTR/RTS)
  */
-static int tiocmset(struct tty_struct *tty, struct file *file,
-                   unsigned int set, unsigned int clear)
+static int tiocmset(struct tty_struct *tty,
+                                   unsigned int set, unsigned int clear)
 {
        struct mgsl_struct *info = tty->driver_data;
        unsigned long flags;
index f18ab8af0e1ca7230c52b865fbbb877b2ce9f6b7..04da6d61dc4f1c87dc6dcf1a2f15eb2ef6a3a74f 100644 (file)
@@ -513,8 +513,8 @@ static int  rx_enable(struct slgt_info *info, int enable);
 static int  modem_input_wait(struct slgt_info *info,int arg);
 static int  wait_mgsl_event(struct slgt_info *info, int __user *mask_ptr);
 static int  tiocmget(struct tty_struct *tty);
-static int  tiocmset(struct tty_struct *tty, struct file *file,
-                    unsigned int set, unsigned int clear);
+static int  tiocmset(struct tty_struct *tty,
+                               unsigned int set, unsigned int clear);
 static int set_break(struct tty_struct *tty, int break_state);
 static int  get_interface(struct slgt_info *info, int __user *if_mode);
 static int  set_interface(struct slgt_info *info, int if_mode);
@@ -3223,7 +3223,7 @@ static int tiocmget(struct tty_struct *tty)
  *             TIOCMSET = set/clear signal values
  *     value   bit mask for command
  */
-static int tiocmset(struct tty_struct *tty, struct file *file,
+static int tiocmset(struct tty_struct *tty,
                    unsigned int set, unsigned int clear)
 {
        struct slgt_info *info = tty->driver_data;
index 5900213ae75b75e210fadf84d8fd888fd0e2096a..1f9de97e8cfcdf2293476b901923a3f0c8f1d82d 100644 (file)
@@ -547,8 +547,8 @@ static int  rx_enable(SLMP_INFO *info, int enable);
 static int  modem_input_wait(SLMP_INFO *info,int arg);
 static int  wait_mgsl_event(SLMP_INFO *info, int __user *mask_ptr);
 static int  tiocmget(struct tty_struct *tty);
-static int  tiocmset(struct tty_struct *tty, struct file *file,
-                    unsigned int set, unsigned int clear);
+static int  tiocmset(struct tty_struct *tty,
+                       unsigned int set, unsigned int clear);
 static int  set_break(struct tty_struct *tty, int break_state);
 
 static void add_device(SLMP_INFO *info);
@@ -3232,8 +3232,8 @@ static int tiocmget(struct tty_struct *tty)
 
 /* set modem control signals (DTR/RTS)
  */
-static int tiocmset(struct tty_struct *tty, struct file *file,
-                   unsigned int set, unsigned int clear)
+static int tiocmset(struct tty_struct *tty,
+                                       unsigned int set, unsigned int clear)
 {
        SLMP_INFO *info = tty->driver_data;
        unsigned long flags;
index e1a7c14f5f1d7e50263d07c01e1b120ed3cb6bd7..9b2bb491c614dbb8967d313c7a46d9bc8ed15b58 100644 (file)
@@ -123,7 +123,7 @@ static void if_throttle(struct tty_struct *tty);
 static void if_unthrottle(struct tty_struct *tty);
 static void if_set_termios(struct tty_struct *tty, struct ktermios *old);
 static int  if_tiocmget(struct tty_struct *tty);
-static int  if_tiocmset(struct tty_struct *tty, struct file *file,
+static int  if_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
 static int  if_write(struct tty_struct *tty,
                     const unsigned char *buf, int count);
@@ -303,7 +303,7 @@ static int if_tiocmget(struct tty_struct *tty)
        return retval;
 }
 
-static int if_tiocmset(struct tty_struct *tty, struct file *file,
+static int if_tiocmset(struct tty_struct *tty,
                       unsigned int set, unsigned int clear)
 {
        struct cardstate *cs;
index 0ef09d0eb96bfbc00600b498ba3c7ad58ec506a9..86a5c4f7775eb5c95a23a35b1bf05a77a8ba9681 100644 (file)
@@ -440,7 +440,7 @@ static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state,
        if (!set && !clear)
                return 0;
        gig_dbg(DEBUG_IF, "tiocmset set %x clear %x", set, clear);
-       return tty->ops->tiocmset(tty, NULL, set, clear);
+       return tty->ops->tiocmset(tty, set, clear);
 }
 
 static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag)
index ba6c2f124b5889cee0c1d8a41abda417ce295c83..0341c69eb1529ff44b6040d947bca79b3bf3dcfa 100644 (file)
@@ -1372,7 +1372,7 @@ isdn_tty_tiocmget(struct tty_struct *tty)
 }
 
 static int
-isdn_tty_tiocmset(struct tty_struct *tty, struct file *file,
+isdn_tty_tiocmset(struct tty_struct *tty,
                unsigned int set, unsigned int clear)
 {
        modem_info *info = (modem_info *) tty->driver_data;
index 86bb04d821b1df020dfdc7a4cbecc9642c5f73be..c8c9edb3d7cb2bf84651f8350fde97f7faa79d66 100644 (file)
@@ -970,7 +970,7 @@ static int sdio_uart_tiocmget(struct tty_struct *tty)
        return result;
 }
 
-static int sdio_uart_tiocmset(struct tty_struct *tty, struct file *file,
+static int sdio_uart_tiocmset(struct tty_struct *tty,
                              unsigned int set, unsigned int clear)
 {
        struct sdio_uart_port *port = tty->driver_data;
index ee1dde52e8fcf1b6ddd620b06fb989972e1528e3..3352b2443e58eb1ca0a45856c628850c08092be6 100644 (file)
@@ -167,7 +167,7 @@ static int irtty_set_dtr_rts(struct sir_dev *dev, int dtr, int rts)
         * let's be careful... Jean II
         */
        IRDA_ASSERT(priv->tty->ops->tiocmset != NULL, return -1;);
-       priv->tty->ops->tiocmset(priv->tty, NULL, set, clear);
+       priv->tty->ops->tiocmset(priv->tty, set, clear);
 
        return 0;
 }
index 7c68c456c035f6102006b799853c3d6088d9a985..956e1d6e72a5564105a61cd2ed52b7f3a1eab9df 100644 (file)
@@ -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;
index d999e54a77308455db6d5075a8d377de6e340060..1c65d1c338731f2d9fa427f2b688de5310e0048a 100644 (file)
@@ -131,8 +131,7 @@ static void cpc_tty_trace(pc300dev_t *dev, char* buf, int len, char rxtx);
 static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char);
 static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char);
 
-static int pc300_tiocmset(struct tty_struct *, struct file *,
-                         unsigned int, unsigned int);
+static int pc300_tiocmset(struct tty_struct *, unsigned int, unsigned int);
 static int pc300_tiocmget(struct tty_struct *);
 
 /* functions called by PC300 driver */
@@ -543,7 +542,7 @@ static int cpc_tty_chars_in_buffer(struct tty_struct *tty)
        return 0;
 } 
 
-static int pc300_tiocmset(struct tty_struct *tty, struct file *file,
+static int pc300_tiocmset(struct tty_struct *tty,
                          unsigned int set, unsigned int clear)
 {
        st_cpc_tty_area    *cpc_tty; 
index 1e50292aef74da87a4a79fa71eb8bb2e8ae09ee0..3734448d1b82ff9c3ac169a0162aef5104753508 100644 (file)
@@ -1121,7 +1121,7 @@ static int qt2_tiocmget(struct tty_struct *tty)
        }
 }
 
-static int qt2_tiocmset(struct tty_struct *tty, struct file *file,
+static int qt2_tiocmset(struct tty_struct *tty,
                       unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 56ded56db7b4ee4175d9e6eef05993759639c7a2..39776c1cf10f7e1f3dd219b05f33accf5befc07f 100644 (file)
@@ -1425,7 +1425,6 @@ static inline int qt_real_tiocmget(struct tty_struct *tty,
 
 static inline int qt_real_tiocmset(struct tty_struct *tty,
                                   struct usb_serial_port *port,
-                                  struct file *file,
                                   struct usb_serial *serial,
                                   unsigned int value)
 {
@@ -1486,7 +1485,7 @@ static int qt_tiocmget(struct tty_struct *tty)
        return retval;
 }
 
-static int qt_tiocmset(struct tty_struct *tty, struct file *file,
+static int qt_tiocmset(struct tty_struct *tty,
                       unsigned int set, unsigned int clear)
 {
 
@@ -1506,7 +1505,7 @@ static int qt_tiocmset(struct tty_struct *tty, struct file *file,
        dbg("%s - port %d\n", __func__, port->number);
        dbg("%s - qt_port->RxHolding = %d\n", __func__, qt_port->RxHolding);
 
-       retval = qt_real_tiocmset(tty, port, file, serial, set);
+       retval = qt_real_tiocmset(tty, port, serial, set);
 
        spin_unlock_irqrestore(&qt_port->lock, flags);
        return retval;
index 55293105a56c6d5cd9f5dca7e539660814d45fcf..8a8d6373f164decd6023719d40236ff5229d3ddf 100644 (file)
@@ -1103,8 +1103,8 @@ static int hvsi_tiocmget(struct tty_struct *tty)
        return hp->mctrl;
 }
 
-static int hvsi_tiocmset(struct tty_struct *tty, struct file *file,
-               unsigned int set, unsigned int clear)
+static int hvsi_tiocmset(struct tty_struct *tty,
+                               unsigned int set, unsigned int clear)
 {
        struct hvsi_struct *hp = tty->driver_data;
        unsigned long flags;
index 97e3d509ff829a3497f8d38b53c96aa0a0b729e9..88477d16b8b7b7db837a251b3dd02139f922ca6a 100644 (file)
@@ -2654,7 +2654,7 @@ static int gsmtty_tiocmget(struct tty_struct *tty)
        return dlci->modem_rx;
 }
 
-static int gsmtty_tiocmset(struct tty_struct *tty, struct file *filp,
+static int gsmtty_tiocmset(struct tty_struct *tty,
        unsigned int set, unsigned int clear)
 {
        struct gsm_dlci *dlci = tty->driver_data;
index 2a52cf14ce504b0c7b6fdd3ec27c3086ea60135d..217fe1c299e0567fe23947e7a5cd17cf1af984e9 100644 (file)
@@ -1271,7 +1271,7 @@ static int rs_360_tiocmget(struct tty_struct *tty)
        return result;
 }
 
-static int rs_360_tiocmset(struct tty_struct *tty, struct file *file,
+static int rs_360_tiocmset(struct tty_struct *tty,
                           unsigned int set, unsigned int clear)
 {
 #ifdef modem_control
index 8cc5c0224b2513b181a1142c18d1d47be20e7345..b9fcd0bda60c44696b3298b49df4c27128a35c53 100644 (file)
@@ -3581,8 +3581,7 @@ rs_break(struct tty_struct *tty, int break_state)
 }
 
 static int
-rs_tiocmset(struct tty_struct *tty, struct file *file,
-               unsigned int set, unsigned int clear)
+rs_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear)
 {
        struct e100_serial *info = (struct e100_serial *)tty->driver_data;
        unsigned long flags;
index 4d26d39ec3441ee97d770fc1a7e60593cd78b8d0..8ee5a41d340d84a74908686bd5e55ab1633ec99f 100644 (file)
@@ -263,7 +263,6 @@ static int ifx_spi_tiocmget(struct tty_struct *tty)
 /**
  *     ifx_spi_tiocmset        -       set modem bits
  *     @tty: the tty structure
- *     @filp: file handle issuing the request
  *     @set: bits to set
  *     @clear: bits to clear
  *
@@ -272,7 +271,7 @@ static int ifx_spi_tiocmget(struct tty_struct *tty)
  *
  *     FIXME: do we need to kick the tranfers when we do this ?
  */
-static int ifx_spi_tiocmset(struct tty_struct *tty, struct file *filp,
+static int ifx_spi_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct ifx_spi_device *ifx_dev = tty->driver_data;
index 53e490e475602866efb67e73f1ac01a4309e423f..623d6bd911d71b0cf21fba9b9c1441b046530ee3 100644 (file)
@@ -925,8 +925,7 @@ static int uart_tiocmget(struct tty_struct *tty)
 }
 
 static int
-uart_tiocmset(struct tty_struct *tty, struct file *file,
-             unsigned int set, unsigned int clear)
+uart_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear)
 {
        struct uart_state *state = tty->driver_data;
        struct uart_port *uport = state->uart_port;
@@ -934,8 +933,7 @@ uart_tiocmset(struct tty_struct *tty, struct file *file,
        int ret = -EIO;
 
        mutex_lock(&port->mutex);
-       if ((!file || !tty_hung_up_p(file)) &&
-           !(tty->flags & (1 << TTY_IO_ERROR))) {
+       if (!(tty->flags & (1 << TTY_IO_ERROR))) {
                uart_update_mctrl(uport, set, clear);
                ret = 0;
        }
index fde5a4dae3ddef96f6e8b8835401ca7683af9751..83af24ca1e5e2ff683e757707a15955f8a19f436 100644 (file)
@@ -2481,7 +2481,6 @@ static int tty_tiocmget(struct tty_struct *tty, int __user *p)
 /**
  *     tty_tiocmset            -       set modem status
  *     @tty: tty device
- *     @file: user file pointer
  *     @cmd: command - clear bits, set bits or set all
  *     @p: pointer to desired bits
  *
@@ -2491,7 +2490,7 @@ static int tty_tiocmget(struct tty_struct *tty, int __user *p)
  *     Locking: none (up to the driver)
  */
 
-static int tty_tiocmset(struct tty_struct *tty, struct file *file, unsigned int cmd,
+static int tty_tiocmset(struct tty_struct *tty, unsigned int cmd,
             unsigned __user *p)
 {
        int retval;
@@ -2518,7 +2517,7 @@ static int tty_tiocmset(struct tty_struct *tty, struct file *file, unsigned int
        }
        set &= TIOCM_DTR|TIOCM_RTS|TIOCM_OUT1|TIOCM_OUT2|TIOCM_LOOP;
        clear &= TIOCM_DTR|TIOCM_RTS|TIOCM_OUT1|TIOCM_OUT2|TIOCM_LOOP;
-       return tty->ops->tiocmset(tty, file, set, clear);
+       return tty->ops->tiocmset(tty, set, clear);
 }
 
 static int tty_tiocgicount(struct tty_struct *tty, void __user *arg)
@@ -2659,7 +2658,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        case TIOCMSET:
        case TIOCMBIC:
        case TIOCMBIS:
-               return tty_tiocmset(tty, file, cmd, p);
+               return tty_tiocmset(tty, cmd, p);
        case TIOCGICOUNT:
                retval = tty_tiocgicount(tty, p);
                /* For the moment allow fall through to the old method */
index 2ae996b7ce7be3fdb9148ab6abf2d20c30062df5..e9a26fbd079cea6cd9cd43927d1fba5cd99ed4f5 100644 (file)
@@ -791,7 +791,7 @@ static int acm_tty_tiocmget(struct tty_struct *tty)
               TIOCM_CTS;
 }
 
-static int acm_tty_tiocmset(struct tty_struct *tty, struct file *file,
+static int acm_tty_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct acm *acm = tty->driver_data;
index 35b610aa3f92953e2412f0a42c53936dc2806130..2f837e98333930ab5fd7b0c4b39c5c3953c61302 100644 (file)
@@ -511,7 +511,7 @@ static int ark3116_tiocmget(struct tty_struct *tty)
                (ctrl   & UART_MCR_OUT2 ? TIOCM_OUT2 : 0);
 }
 
-static int ark3116_tiocmset(struct tty_struct *tty, struct file *file,
+static int ark3116_tiocmset(struct tty_struct *tty,
                        unsigned set, unsigned clr)
 {
        struct usb_serial_port *port = tty->driver_data;
index 48fb3bad3cd6adf23aeee9ef0249ae07693b0de4..d6921fa1403c936a8c506a39aa3cade007552a14 100644 (file)
@@ -101,7 +101,7 @@ static void belkin_sa_set_termios(struct tty_struct *tty,
                        struct usb_serial_port *port, struct ktermios * old);
 static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state);
 static int  belkin_sa_tiocmget(struct tty_struct *tty);
-static int  belkin_sa_tiocmset(struct tty_struct *tty, struct file *file,
+static int  belkin_sa_tiocmset(struct tty_struct *tty,
                                        unsigned int set, unsigned int clear);
 
 
@@ -513,7 +513,7 @@ static int belkin_sa_tiocmget(struct tty_struct *tty)
        return control_state;
 }
 
-static int belkin_sa_tiocmset(struct tty_struct *tty, struct file *file,
+static int belkin_sa_tiocmset(struct tty_struct *tty,
                               unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index aa0962b72f4ccb7d3ceaa8d9534505e5488d6acf..5cbef313281edc3faac5ca8dbb352909eb8d2e9d 100644 (file)
@@ -431,7 +431,7 @@ out:
        kfree(break_reg);
 }
 
-static int ch341_tiocmset(struct tty_struct *tty, struct file *file,
+static int ch341_tiocmset(struct tty_struct *tty,
                          unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index b3873815035cdeab95d93eb4a87b3e3dba9bb135..4df3e0cecbae7c666570a85a5d1dfb659ecf6b63 100644 (file)
@@ -42,9 +42,8 @@ static void cp210x_get_termios_port(struct usb_serial_port *port,
 static void cp210x_set_termios(struct tty_struct *, struct usb_serial_port *,
                                                        struct ktermios*);
 static int cp210x_tiocmget(struct tty_struct *);
-static int cp210x_tiocmset(struct tty_struct *, struct file *,
-               unsigned int, unsigned int);
-static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *,
+static int cp210x_tiocmset(struct tty_struct *, unsigned int, unsigned int);
+static int cp210x_tiocmset_port(struct usb_serial_port *port,
                unsigned int, unsigned int);
 static void cp210x_break_ctl(struct tty_struct *, int);
 static int cp210x_startup(struct usb_serial *);
@@ -698,14 +697,14 @@ static void cp210x_set_termios(struct tty_struct *tty,
 
 }
 
-static int cp210x_tiocmset (struct tty_struct *tty, struct file *file,
+static int cp210x_tiocmset (struct tty_struct *tty,
                unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
-       return cp210x_tiocmset_port(port, file, set, clear);
+       return cp210x_tiocmset_port(port, set, clear);
 }
 
-static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *file,
+static int cp210x_tiocmset_port(struct usb_serial_port *port,
                unsigned int set, unsigned int clear)
 {
        unsigned int control = 0;
@@ -737,9 +736,9 @@ static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *file,
 static void cp210x_dtr_rts(struct usb_serial_port *p, int on)
 {
        if (on)
-               cp210x_tiocmset_port(p, NULL,  TIOCM_DTR|TIOCM_RTS, 0);
+               cp210x_tiocmset_port(p, TIOCM_DTR|TIOCM_RTS, 0);
        else
-               cp210x_tiocmset_port(p, NULL,  0, TIOCM_DTR|TIOCM_RTS);
+               cp210x_tiocmset_port(p, 0, TIOCM_DTR|TIOCM_RTS);
 }
 
 static int cp210x_tiocmget (struct tty_struct *tty)
index 9c96cff691fd4bb53094bc2ab40d97b6a625f66a..2beb5a66180d5e18c5be7afacf697719084c3944 100644 (file)
@@ -174,7 +174,7 @@ static int  cypress_ioctl(struct tty_struct *tty, struct file *file,
 static void cypress_set_termios(struct tty_struct *tty,
                        struct usb_serial_port *port, struct ktermios *old);
 static int  cypress_tiocmget(struct tty_struct *tty);
-static int  cypress_tiocmset(struct tty_struct *tty, struct file *file,
+static int  cypress_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
 static int  cypress_chars_in_buffer(struct tty_struct *tty);
 static void cypress_throttle(struct tty_struct *tty);
@@ -892,7 +892,7 @@ static int cypress_tiocmget(struct tty_struct *tty)
 }
 
 
-static int cypress_tiocmset(struct tty_struct *tty, struct file *file,
+static int cypress_tiocmset(struct tty_struct *tty,
                               unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 08da46cb582554182ced922921f4b009183981ea..86fbba6336c9c0bd7e74529f12aa3f50dc2f7807 100644 (file)
@@ -446,10 +446,10 @@ static void digi_set_termios(struct tty_struct *tty,
                struct usb_serial_port *port, struct ktermios *old_termios);
 static void digi_break_ctl(struct tty_struct *tty, int break_state);
 static int digi_tiocmget(struct tty_struct *tty);
-static int digi_tiocmset(struct tty_struct *tty, struct file *file,
-       unsigned int set, unsigned int clear);
+static int digi_tiocmset(struct tty_struct *tty, unsigned int set,
+               unsigned int clear);
 static int digi_write(struct tty_struct *tty, struct usb_serial_port *port,
-       const unsigned char *buf, int count);
+               const unsigned char *buf, int count);
 static void digi_write_bulk_callback(struct urb *urb);
 static int digi_write_room(struct tty_struct *tty);
 static int digi_chars_in_buffer(struct tty_struct *tty);
@@ -1134,8 +1134,8 @@ static int digi_tiocmget(struct tty_struct *tty)
 }
 
 
-static int digi_tiocmset(struct tty_struct *tty, struct file *file,
-       unsigned int set, unsigned int clear)
+static int digi_tiocmset(struct tty_struct *tty,
+                                       unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
        struct digi_port *priv = usb_get_serial_port_data(port);
index 281d181410515056297673ac64d4171b149194f1..f521ab1eb60fe0d6fa41a81da0d0ea1524228cdb 100644 (file)
@@ -857,7 +857,7 @@ static int ftdi_prepare_write_buffer(struct usb_serial_port *port,
 static void ftdi_set_termios(struct tty_struct *tty,
                        struct usb_serial_port *port, struct ktermios *old);
 static int  ftdi_tiocmget(struct tty_struct *tty);
-static int  ftdi_tiocmset(struct tty_struct *tty, struct file *file,
+static int  ftdi_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
 static int  ftdi_ioctl(struct tty_struct *tty, struct file *file,
                        unsigned int cmd, unsigned long arg);
@@ -2202,7 +2202,7 @@ out:
        return ret;
 }
 
-static int ftdi_tiocmset(struct tty_struct *tty, struct file *file,
+static int ftdi_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index e8fe4dcf72f01e3ffef9a58d541b44405d311919..0b8846e27a79af1f157b9aa4d871a193d8daf88f 100644 (file)
@@ -220,7 +220,7 @@ static int  edge_ioctl(struct tty_struct *tty, struct file *file,
                                        unsigned int cmd, unsigned long arg);
 static void edge_break(struct tty_struct *tty, int break_state);
 static int  edge_tiocmget(struct tty_struct *tty);
-static int  edge_tiocmset(struct tty_struct *tty, struct file *file,
+static int  edge_tiocmset(struct tty_struct *tty,
                                        unsigned int set, unsigned int clear);
 static int  edge_get_icount(struct tty_struct *tty,
                                struct serial_icounter_struct *icount);
@@ -1568,7 +1568,7 @@ static int get_lsr_info(struct edgeport_port *edge_port,
        return 0;
 }
 
-static int edge_tiocmset(struct tty_struct *tty, struct file *file,
+static int edge_tiocmset(struct tty_struct *tty,
                                        unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 7cb9f5cb91f3c2fe835d44f825b7cc2c7727d221..88120523710b3954ca8af37a81b5edfece5944a0 100644 (file)
@@ -2444,7 +2444,7 @@ static void edge_set_termios(struct tty_struct *tty,
        change_port_settings(tty, edge_port, old_termios);
 }
 
-static int edge_tiocmset(struct tty_struct *tty, struct file *file,
+static int edge_tiocmset(struct tty_struct *tty,
                                        unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 1d96142f135a45e3775b0f494d0fe8ad45f1d825..6aca631a407aa0891492b12c05259e4618ad333e 100644 (file)
@@ -150,7 +150,7 @@ static void iuu_release(struct usb_serial *serial)
        }
 }
 
-static int iuu_tiocmset(struct tty_struct *tty, struct file *file,
+static int iuu_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 1beebbb7a20a4e38751bf641f0528f39b3493581..c6e968f24e04832b152b9fc926e75d58a53e5741 100644 (file)
@@ -317,7 +317,7 @@ static int keyspan_tiocmget(struct tty_struct *tty)
        return value;
 }
 
-static int keyspan_tiocmset(struct tty_struct *tty, struct file *file,
+static int keyspan_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 5e5fc71e68df82c68ee910117c10920c2d39747f..13fa1d1cc9004b8a1bc80c3d41870d7a311f13d1 100644 (file)
@@ -60,7 +60,7 @@ static void keyspan_break_ctl         (struct tty_struct *tty,
                                         int break_state);
 static int  keyspan_tiocmget           (struct tty_struct *tty);
 static int  keyspan_tiocmset           (struct tty_struct *tty,
-                                        struct file *file, unsigned int set,
+                                        unsigned int set,
                                         unsigned int clear);
 static int  keyspan_fake_startup       (struct usb_serial *serial);
 
index 49ad2baf77cd78b94e98106ed583d20dd1606cba..207caabdc4ff7acc4cdd82bf7e0dfe46d83a7533 100644 (file)
@@ -478,7 +478,7 @@ static int keyspan_pda_tiocmget(struct tty_struct *tty)
        return value;
 }
 
-static int keyspan_pda_tiocmset(struct tty_struct *tty, struct file *file,
+static int keyspan_pda_tiocmset(struct tty_struct *tty,
                                unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index a570f5201c73871dc6f78d04d15cab9034b15705..19373cb7c5bfbe800c0a19bc5aa6be38f60386ae 100644 (file)
@@ -69,7 +69,7 @@ static void klsi_105_close(struct usb_serial_port *port);
 static void klsi_105_set_termios(struct tty_struct *tty,
                        struct usb_serial_port *port, struct ktermios *old);
 static int  klsi_105_tiocmget(struct tty_struct *tty);
-static int  klsi_105_tiocmset(struct tty_struct *tty, struct file *file,
+static int  klsi_105_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
 static void klsi_105_process_read_urb(struct urb *urb);
 static int klsi_105_prepare_write_buffer(struct usb_serial_port *port,
@@ -661,7 +661,7 @@ static int klsi_105_tiocmget(struct tty_struct *tty)
        return (int)line_state;
 }
 
-static int klsi_105_tiocmset(struct tty_struct *tty, struct file *file,
+static int klsi_105_tiocmset(struct tty_struct *tty,
                             unsigned int set, unsigned int clear)
 {
        int retval = -EINVAL;
index 81d07fb299b896bf67988bfe5c33e7ba1195db3a..22cd0c08f46f006b8668c1d1d6c1edc1520f182b 100644 (file)
@@ -78,7 +78,7 @@ static int  kobil_write_room(struct tty_struct *tty);
 static int  kobil_ioctl(struct tty_struct *tty, struct file *file,
                        unsigned int cmd, unsigned long arg);
 static int  kobil_tiocmget(struct tty_struct *tty);
-static int  kobil_tiocmset(struct tty_struct *tty, struct file *file,
+static int  kobil_tiocmset(struct tty_struct *tty,
                           unsigned int set, unsigned int clear);
 static void kobil_read_int_callback(struct urb *urb);
 static void kobil_write_callback(struct urb *purb);
@@ -544,7 +544,7 @@ static int kobil_tiocmget(struct tty_struct *tty)
        return result;
 }
 
-static int kobil_tiocmset(struct tty_struct *tty, struct file *file,
+static int kobil_tiocmset(struct tty_struct *tty,
                           unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 27447095feae740550c71999b96b4f6192e20329..ef49902c5a51a7a671eccd479768a12415a9e2db 100644 (file)
@@ -102,7 +102,7 @@ static void mct_u232_set_termios(struct tty_struct *tty,
                        struct usb_serial_port *port, struct ktermios *old);
 static void mct_u232_break_ctl(struct tty_struct *tty, int break_state);
 static int  mct_u232_tiocmget(struct tty_struct *tty);
-static int  mct_u232_tiocmset(struct tty_struct *tty, struct file *file,
+static int  mct_u232_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
 static void mct_u232_throttle(struct tty_struct *tty);
 static void mct_u232_unthrottle(struct tty_struct *tty);
@@ -778,7 +778,7 @@ static int mct_u232_tiocmget(struct tty_struct *tty)
        return control_state;
 }
 
-static int mct_u232_tiocmset(struct tty_struct *tty, struct file *file,
+static int mct_u232_tiocmset(struct tty_struct *tty,
                              unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 5d40d4151b5a58dfb1ab835998c7299d061f1881..95b1c64cac03c2bb531c7b81881cb14ff0d19e71 100644 (file)
@@ -1858,7 +1858,7 @@ static int mos7720_tiocmget(struct tty_struct *tty)
        return result;
 }
 
-static int mos7720_tiocmset(struct tty_struct *tty, struct file *file,
+static int mos7720_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index ee0dc9a0890c2a7636c9c88f5332b52439ada9bd..9424178c6689c66eab5edd7aefb50cd11620782d 100644 (file)
@@ -1674,7 +1674,7 @@ static int mos7840_tiocmget(struct tty_struct *tty)
        return result;
 }
 
-static int mos7840_tiocmset(struct tty_struct *tty, struct file *file,
+static int mos7840_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 4cd3b0ef4e6162dc264186604494159566a3be6c..63734cb0fb0fddbb76a98ef11fb8c40be21909a2 100644 (file)
@@ -145,7 +145,7 @@ static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port,
 static int oti6858_write_room(struct tty_struct *tty);
 static int oti6858_chars_in_buffer(struct tty_struct *tty);
 static int oti6858_tiocmget(struct tty_struct *tty);
-static int oti6858_tiocmset(struct tty_struct *tty, struct file *file,
+static int oti6858_tiocmset(struct tty_struct *tty,
                                unsigned int set, unsigned int clear);
 static int oti6858_startup(struct usb_serial *serial);
 static void oti6858_release(struct usb_serial *serial);
@@ -624,7 +624,7 @@ static void oti6858_close(struct usb_serial_port *port)
        usb_kill_urb(port->interrupt_in_urb);
 }
 
-static int oti6858_tiocmset(struct tty_struct *tty, struct file *file,
+static int oti6858_tiocmset(struct tty_struct *tty,
                                unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 6cb4f503a3f171f477244f93239507d72bdbcecf..b797992fa54b0113a8822b81fc76b78072aa42f9 100644 (file)
@@ -505,7 +505,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
        return 0;
 }
 
-static int pl2303_tiocmset(struct tty_struct *tty, struct file *file,
+static int pl2303_tiocmset(struct tty_struct *tty,
                           unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 66437f1e9e5ba491d0fdf0060665255b6fb06357..79ee6c79ad54f6581f69d13f898474a5e639aef8 100644 (file)
@@ -408,7 +408,7 @@ static int sierra_tiocmget(struct tty_struct *tty)
        return value;
 }
 
-static int sierra_tiocmset(struct tty_struct *tty, struct file *file,
+static int sierra_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index cac13009fc5ccb0578fc7a12ba895936bdfa7638..dfbc543e0db8bd3688cd7459ce705e4c87e8f3df 100644 (file)
@@ -595,7 +595,7 @@ static int spcp8x5_ioctl(struct tty_struct *tty, struct file *file,
        return -ENOIOCTLCMD;
 }
 
-static int spcp8x5_tiocmset(struct tty_struct *tty, struct file *file,
+static int spcp8x5_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index b21583fa825c165d0acfe81754c6a0c899a2c102..abceee9d3af93ffeb987b168fe40d2cae6891f02 100644 (file)
@@ -517,7 +517,7 @@ mget_out:
        return r;
 }
 
-static int ssu100_tiocmset(struct tty_struct *tty, struct file *file,
+static int ssu100_tiocmset(struct tty_struct *tty,
                           unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 223e60e31735a13da6066806fc33acb3eb6f019f..c7fea4a2a1be74739caaeac8ff51bfad25292585 100644 (file)
@@ -113,7 +113,7 @@ static int ti_get_icount(struct tty_struct *tty,
 static void ti_set_termios(struct tty_struct *tty,
                struct usb_serial_port *port, struct ktermios *old_termios);
 static int ti_tiocmget(struct tty_struct *tty);
-static int ti_tiocmset(struct tty_struct *tty, struct file *file,
+static int ti_tiocmset(struct tty_struct *tty,
                unsigned int set, unsigned int clear);
 static void ti_break(struct tty_struct *tty, int break_state);
 static void ti_interrupt_callback(struct urb *urb);
@@ -1033,8 +1033,8 @@ static int ti_tiocmget(struct tty_struct *tty)
 }
 
 
-static int ti_tiocmset(struct tty_struct *tty, struct file *file,
-       unsigned int set, unsigned int clear)
+static int ti_tiocmset(struct tty_struct *tty,
+                               unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
        struct ti_port *tport = usb_get_serial_port_data(port);
index df105c6531a17283139d64282476e4a57f2417db..dab679e5b7ea3e46f0c67e6b409dc0f4f2a5733e 100644 (file)
@@ -507,7 +507,7 @@ static int serial_tiocmget(struct tty_struct *tty)
        return -EINVAL;
 }
 
-static int serial_tiocmset(struct tty_struct *tty, struct file *file,
+static int serial_tiocmset(struct tty_struct *tty,
                            unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
@@ -515,7 +515,7 @@ static int serial_tiocmset(struct tty_struct *tty, struct file *file,
        dbg("%s - port %d", __func__, port->number);
 
        if (port->serial->type->tiocmset)
-               return port->serial->type->tiocmset(tty, file, set, clear);
+               return port->serial->type->tiocmset(tty, set, clear);
        return -EINVAL;
 }
 
index 8b68fc783d5f298b94a3da53056bcb4d9f199385..4d65f1c8dd93061ea2e79229f5756b587fb38c4f 100644 (file)
@@ -16,7 +16,7 @@ extern void usb_wwan_set_termios(struct tty_struct *tty,
                                 struct usb_serial_port *port,
                                 struct ktermios *old);
 extern int usb_wwan_tiocmget(struct tty_struct *tty);
-extern int usb_wwan_tiocmset(struct tty_struct *tty, struct file *file,
+extern int usb_wwan_tiocmset(struct tty_struct *tty,
                             unsigned int set, unsigned int clear);
 extern int usb_wwan_ioctl(struct tty_struct *tty, struct file *file,
                          unsigned int cmd, unsigned long arg);
index 60f942632cb4266fbb1f1a392401181f2b091605..b72912027ae8dd27a5041314fa8abbde04084172 100644 (file)
@@ -98,7 +98,7 @@ int usb_wwan_tiocmget(struct tty_struct *tty)
 }
 EXPORT_SYMBOL(usb_wwan_tiocmget);
 
-int usb_wwan_tiocmset(struct tty_struct *tty, struct file *file,
+int usb_wwan_tiocmset(struct tty_struct *tty,
                      unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index bf850139e0b8156f752c69e0b275208792f1761a..6e0c397e869fc445bfba69b2da9b6e43fb2b2494 100644 (file)
@@ -157,7 +157,7 @@ static int  whiteheat_ioctl(struct tty_struct *tty, struct file *file,
 static void whiteheat_set_termios(struct tty_struct *tty,
                        struct usb_serial_port *port, struct ktermios *old);
 static int  whiteheat_tiocmget(struct tty_struct *tty);
-static int  whiteheat_tiocmset(struct tty_struct *tty, struct file *file,
+static int  whiteheat_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
 static void whiteheat_break_ctl(struct tty_struct *tty, int break_state);
 static int  whiteheat_chars_in_buffer(struct tty_struct *tty);
@@ -850,7 +850,7 @@ static int whiteheat_tiocmget(struct tty_struct *tty)
        return modem_signals;
 }
 
-static int whiteheat_tiocmset(struct tty_struct *tty, struct file *file,
+static int whiteheat_tiocmset(struct tty_struct *tty,
                               unsigned int set, unsigned int clear)
 {
        struct usb_serial_port *port = tty->driver_data;
index 9539d74171db2ecbbe9eaf654f26df9d3618bcd2..5dabaa2e6da3c8e8b4b886677b9192073d4569d7 100644 (file)
@@ -272,7 +272,7 @@ struct tty_operations {
        void (*wait_until_sent)(struct tty_struct *tty, int timeout);
        void (*send_xchar)(struct tty_struct *tty, char ch);
        int (*tiocmget)(struct tty_struct *tty);
-       int (*tiocmset)(struct tty_struct *tty, struct file *file,
+       int (*tiocmset)(struct tty_struct *tty,
                        unsigned int set, unsigned int clear);
        int (*resize)(struct tty_struct *tty, struct winsize *ws);
        int (*set_termiox)(struct tty_struct *tty, struct termiox *tnew);
index 30b945397d193362499bf3cfa9870c9ee33104bd..c1aa1b243ba330c62b02a7192f8f3e578cba8bfd 100644 (file)
@@ -269,7 +269,7 @@ struct usb_serial_driver {
        void (*throttle)(struct tty_struct *tty);
        void (*unthrottle)(struct tty_struct *tty);
        int  (*tiocmget)(struct tty_struct *tty);
-       int  (*tiocmset)(struct tty_struct *tty, struct file *file,
+       int  (*tiocmset)(struct tty_struct *tty,
                         unsigned int set, unsigned int clear);
        int  (*get_icount)(struct tty_struct *tty,
                        struct serial_icounter_struct *icount);
index fa3793b5392dc5721c5c21521342dba9aeceedc8..980ccb66e1b4b662779953fdf7064c5d1ca4f469 100644 (file)
@@ -121,7 +121,7 @@ void ircomm_tty_start(struct tty_struct *tty);
 void ircomm_tty_check_modem_status(struct ircomm_tty_cb *self);
 
 extern int ircomm_tty_tiocmget(struct tty_struct *tty);
-extern int ircomm_tty_tiocmset(struct tty_struct *tty, struct file *file,
+extern int ircomm_tty_tiocmset(struct tty_struct *tty,
                               unsigned int set, unsigned int clear);
 extern int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file, 
                            unsigned int cmd, unsigned long arg);
index 7f67fa4f2f5e845c35beaff02445ea87f5cf3e28..8e78e7447726a11cd891b020a808fd3a7ba991cb 100644 (file)
@@ -1098,7 +1098,7 @@ static int rfcomm_tty_tiocmget(struct tty_struct *tty)
        return dev->modem_status;
 }
 
-static int rfcomm_tty_tiocmset(struct tty_struct *tty, struct file *filp, unsigned int set, unsigned int clear)
+static int rfcomm_tty_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear)
 {
        struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data;
        struct rfcomm_dlc *dlc = dev->dlc;
index bb47caeba7e683eb555774a91bbe87608890f7fa..5e0e718c930a9f94dbe4e13e656ac187283d8cf2 100644 (file)
@@ -214,12 +214,12 @@ int ircomm_tty_tiocmget(struct tty_struct *tty)
 }
 
 /*
- * Function ircomm_tty_tiocmset (tty, file, set, clear)
+ * Function ircomm_tty_tiocmset (tty, set, clear)
  *
  *
  *
  */
-int ircomm_tty_tiocmset(struct tty_struct *tty, struct file *file,
+int ircomm_tty_tiocmset(struct tty_struct *tty,
                        unsigned int set, unsigned int clear)
 {
        struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;