Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67906
b: refs/heads/master
c: 93b6497
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 5759b79 commit e1fa668
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ce76104781a10554129791dc62c3104424f6d48
refs/heads/master: 93b6497da99978742ffa9d9db6177397436278f5
10 changes: 6 additions & 4 deletions trunk/drivers/usb/serial/ch341.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ static int ch341_control_in(struct usb_device *dev,
return r;
}

int ch341_set_baudrate(struct usb_device *dev, struct ch341_private *priv)
static int ch341_set_baudrate(struct usb_device *dev,
struct ch341_private *priv)
{
short a, b;
int r;
Expand Down Expand Up @@ -108,14 +109,15 @@ int ch341_set_baudrate(struct usb_device *dev, struct ch341_private *priv)
return r;
}

int ch341_set_handshake(struct usb_device *dev, struct ch341_private *priv)
static int ch341_set_handshake(struct usb_device *dev,
struct ch341_private *priv)
{
dbg("ch341_set_handshake(%d,%d)", priv->dtr, priv->rts);
return ch341_control_out(dev, 0xa4,
~((priv->dtr?1<<5:0)|(priv->rts?1<<6:0)), 0);
}

int ch341_get_status(struct usb_device *dev)
static int ch341_get_status(struct usb_device *dev)
{
char *buffer;
int r;
Expand All @@ -142,7 +144,7 @@ out: kfree(buffer);

/* -------------------------------------------------------------------------- */

int ch341_configure(struct usb_device *dev, struct ch341_private *priv)
static int ch341_configure(struct usb_device *dev, struct ch341_private *priv)
{
char *buffer;
int r;
Expand Down

0 comments on commit e1fa668

Please sign in to comment.