Commit b830d07d authored by Peter Hung's avatar Peter Hung Committed by Johan Hovold

USB: f81232: rename private struct member name

Change private struct member name from line_status to modem_status.
It will store MSR for some functions used
Signed-off-by: default avatarPeter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 394a1033
...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(usb, id_table); ...@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(usb, id_table);
struct f81232_private { struct f81232_private {
spinlock_t lock; spinlock_t lock;
u8 line_control; u8 line_control;
u8 line_status; u8 modem_status;
}; };
static void f81232_update_line_status(struct usb_serial_port *port, static void f81232_update_line_status(struct usb_serial_port *port,
...@@ -113,8 +113,8 @@ static void f81232_process_read_urb(struct urb *urb) ...@@ -113,8 +113,8 @@ static void f81232_process_read_urb(struct urb *urb)
/* update line status */ /* update line status */
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
line_status = priv->line_status; line_status = priv->modem_status;
priv->line_status &= ~UART_STATE_TRANSIENT_MASK; priv->modem_status &= ~UART_STATE_TRANSIENT_MASK;
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);
if (!urb->actual_length) if (!urb->actual_length)
...@@ -241,7 +241,7 @@ static void f81232_dtr_rts(struct usb_serial_port *port, int on) ...@@ -241,7 +241,7 @@ static void f81232_dtr_rts(struct usb_serial_port *port, int on)
static int f81232_carrier_raised(struct usb_serial_port *port) static int f81232_carrier_raised(struct usb_serial_port *port)
{ {
struct f81232_private *priv = usb_get_serial_port_data(port); struct f81232_private *priv = usb_get_serial_port_data(port);
if (priv->line_status & UART_DCD) if (priv->modem_status & UART_DCD)
return 1; return 1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment