All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <jhovold@gmail.com>
To: Peter Senna Tschudin <peter.senna@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Oliver Neukum <oliver@neukum.org>,
	kernel-janitors@vger.kernel.org, Johan Hovold <jhovold@gmail.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/11 V2] USB: kl5kusb105: Remove klsi_105_tiocmset function
Date: Sun, 01 Jun 2014 09:31:17 +0000	[thread overview]
Message-ID: <20140601093117.GC14935@localhost> (raw)
In-Reply-To: <1401552180-9445-1-git-send-email-peter.senna@gmail.com>

On Sat, May 31, 2014 at 01:03:00PM -0300, Peter Senna Tschudin wrote:
> This patch remove the function klsi_105_tiocmset which was only
> returning -EINVAL. It also removes the function prototype and
> the .tiocmset entry in the struct usb_serial_driver.
> 
> Verified by compilation only.
> 
> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>

Signed-off-by: Johan Hovold <jhovold@gmail.com>

> ---
> Changes from V1:
>  - remove the function klsi_105_tiocmset instead of simplifying it
>  - remove the function prototype
>  - remove the .tiocmset entry in the struct usb_serial_driver
>  - update commit message and subject

Thanks for the update, Peter.

Johan
 
> 
>  drivers/usb/serial/kl5kusb105.c |   23 +----------------------
>  1 file changed, 1 insertion(+), 22 deletions(-)
> 
> diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c
> index d7440b7..e020ad2 100644
> --- a/drivers/usb/serial/kl5kusb105.c
> +++ b/drivers/usb/serial/kl5kusb105.c
> @@ -62,8 +62,6 @@ 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,
> -			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,
>  						void *dest, size_t size);
> @@ -93,7 +91,6 @@ static struct usb_serial_driver kl5kusb105d_device = {
>  	.set_termios =		klsi_105_set_termios,
>  	/*.break_ctl =		klsi_105_break_ctl,*/
>  	.tiocmget =		klsi_105_tiocmget,
> -	.tiocmset =		klsi_105_tiocmset,
>  	.port_probe =		klsi_105_port_probe,
>  	.port_remove =		klsi_105_port_remove,
>  	.throttle =		usb_serial_generic_throttle,
> @@ -602,33 +599,6 @@ static int klsi_105_tiocmget(struct tty_struct *tty)
>  	return (int)line_state;
>  }
>  
> -static int klsi_105_tiocmset(struct tty_struct *tty,
> -			     unsigned int set, unsigned int clear)
> -{
> -	int retval = -EINVAL;
> -
> -/* if this ever gets implemented, it should be done something like this:
> -	struct usb_serial *serial = port->serial;
> -	struct klsi_105_private *priv = usb_get_serial_port_data(port);
> -	unsigned long flags;
> -	int control;
> -
> -	spin_lock_irqsave (&priv->lock, flags);
> -	if (set & TIOCM_RTS)
> -		priv->control_state |= TIOCM_RTS;
> -	if (set & TIOCM_DTR)
> -		priv->control_state |= TIOCM_DTR;
> -	if (clear & TIOCM_RTS)
> -		priv->control_state &= ~TIOCM_RTS;
> -	if (clear & TIOCM_DTR)
> -		priv->control_state &= ~TIOCM_DTR;
> -	control = priv->control_state;
> -	spin_unlock_irqrestore (&priv->lock, flags);
> -	retval = mct_u232_set_modem_ctrl(serial, control);
> -*/
> -	return retval;
> -}
> -
>  module_usb_serial_driver(serial_drivers, id_table);
>  
>  MODULE_AUTHOR(DRIVER_AUTHOR);

WARNING: multiple messages have this Message-ID (diff)
From: Johan Hovold <jhovold@gmail.com>
To: Peter Senna Tschudin <peter.senna@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Oliver Neukum <oliver@neukum.org>,
	kernel-janitors@vger.kernel.org, Johan Hovold <jhovold@gmail.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/11 V2] USB: kl5kusb105: Remove klsi_105_tiocmset function
Date: Sun, 1 Jun 2014 11:31:17 +0200	[thread overview]
Message-ID: <20140601093117.GC14935@localhost> (raw)
In-Reply-To: <1401552180-9445-1-git-send-email-peter.senna@gmail.com>

On Sat, May 31, 2014 at 01:03:00PM -0300, Peter Senna Tschudin wrote:
> This patch remove the function klsi_105_tiocmset which was only
> returning -EINVAL. It also removes the function prototype and
> the .tiocmset entry in the struct usb_serial_driver.
> 
> Verified by compilation only.
> 
> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>

Signed-off-by: Johan Hovold <jhovold@gmail.com>

> ---
> Changes from V1:
>  - remove the function klsi_105_tiocmset instead of simplifying it
>  - remove the function prototype
>  - remove the .tiocmset entry in the struct usb_serial_driver
>  - update commit message and subject

Thanks for the update, Peter.

Johan
 
> 
>  drivers/usb/serial/kl5kusb105.c |   23 +----------------------
>  1 file changed, 1 insertion(+), 22 deletions(-)
> 
> diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c
> index d7440b7..e020ad2 100644
> --- a/drivers/usb/serial/kl5kusb105.c
> +++ b/drivers/usb/serial/kl5kusb105.c
> @@ -62,8 +62,6 @@ 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,
> -			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,
>  						void *dest, size_t size);
> @@ -93,7 +91,6 @@ static struct usb_serial_driver kl5kusb105d_device = {
>  	.set_termios =		klsi_105_set_termios,
>  	/*.break_ctl =		klsi_105_break_ctl,*/
>  	.tiocmget =		klsi_105_tiocmget,
> -	.tiocmset =		klsi_105_tiocmset,
>  	.port_probe =		klsi_105_port_probe,
>  	.port_remove =		klsi_105_port_remove,
>  	.throttle =		usb_serial_generic_throttle,
> @@ -602,33 +599,6 @@ static int klsi_105_tiocmget(struct tty_struct *tty)
>  	return (int)line_state;
>  }
>  
> -static int klsi_105_tiocmset(struct tty_struct *tty,
> -			     unsigned int set, unsigned int clear)
> -{
> -	int retval = -EINVAL;
> -
> -/* if this ever gets implemented, it should be done something like this:
> -	struct usb_serial *serial = port->serial;
> -	struct klsi_105_private *priv = usb_get_serial_port_data(port);
> -	unsigned long flags;
> -	int control;
> -
> -	spin_lock_irqsave (&priv->lock, flags);
> -	if (set & TIOCM_RTS)
> -		priv->control_state |= TIOCM_RTS;
> -	if (set & TIOCM_DTR)
> -		priv->control_state |= TIOCM_DTR;
> -	if (clear & TIOCM_RTS)
> -		priv->control_state &= ~TIOCM_RTS;
> -	if (clear & TIOCM_DTR)
> -		priv->control_state &= ~TIOCM_DTR;
> -	control = priv->control_state;
> -	spin_unlock_irqrestore (&priv->lock, flags);
> -	retval = mct_u232_set_modem_ctrl(serial, control);
> -*/
> -	return retval;
> -}
> -
>  module_usb_serial_driver(serial_drivers, id_table);
>  
>  MODULE_AUTHOR(DRIVER_AUTHOR);

  reply	other threads:[~2014-06-01  9:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-31 16:03 [PATCH 1/11 V2] USB: kl5kusb105: Remove klsi_105_tiocmset function Peter Senna Tschudin
2014-05-31 16:03 ` Peter Senna Tschudin
2014-06-01  9:31 ` Johan Hovold [this message]
2014-06-01  9:31   ` Johan Hovold
2014-07-07  8:53   ` Johan Hovold
2014-07-07  8:53     ` Johan Hovold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140601093117.GC14935@localhost \
    --to=jhovold@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oliver@neukum.org \
    --cc=peter.senna@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.