summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-07-02 14:15:37 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-07-02 14:15:37 +1000
commit894572e1e282c0fe0e4704d0eac064f9453f5aba (patch)
treeae944b77fe08afe184280443612086a6f6c17d90
parentf81773904ed5f41e5116914f3c619c18a59e8a1d (diff)
45-tty-tidy-usb-io-ti
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/serial/io_ti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index d31655c0d5f3..39f740d9e22e 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -2401,7 +2401,7 @@ static void change_port_settings(struct tty_struct *tty,
return;
}
-static void edge_set_termios(struct tty_struct *tty,
+static void edge_set_termios(struct tty_struct *tty,
struct usb_serial_port *port, struct ktermios *old_termios)
{
struct edgeport_port *edge_port = usb_get_serial_port_data(port);
@@ -2770,7 +2770,7 @@ static unsigned int edge_buf_data_avail(struct edge_buf *eb)
{
if (eb == NULL)
return 0;
- return ((eb->buf_size + eb->buf_put - eb->buf_get) % eb->buf_size);
+ return (eb->buf_size + eb->buf_put - eb->buf_get) % eb->buf_size;
}
@@ -2785,7 +2785,7 @@ static unsigned int edge_buf_space_avail(struct edge_buf *eb)
{
if (eb == NULL)
return 0;
- return ((eb->buf_size + eb->buf_get - eb->buf_put - 1) % eb->buf_size);
+ return (eb->buf_size + eb->buf_get - eb->buf_put - 1) % eb->buf_size;
}