diff options
| author | bart.hartgers@gmail.com <bart.hartgers@gmail.com> | 2009-10-28 05:43:30 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 14:55:21 -0500 |
| commit | 3ad4b116004bce1d2bb6e8cef50bf4c48c828dc1 (patch) | |
| tree | cc60ceb83100551ffd93390f81e45cfad0c63078 /drivers/usb/serial | |
| parent | 62d826c8ddafb0a55eb6c5255779ddb782dc5507 (diff) | |
USB: ark3116: Cleanup of now unneeded functions
Signed-off-by: Bart Hartgers <bart.hartgers@gmail.com>
Cc: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial')
| -rw-r--r-- | drivers/usb/serial/ark3116.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 067daf4db646..a9c2dec8e3fb 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
| @@ -113,45 +113,6 @@ static int ark3116_read_reg(struct usb_serial *serial, | |||
| 113 | return buf[0]; | 113 | return buf[0]; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | static inline void ARK3116_SND(struct usb_serial *serial, int seq, | ||
| 117 | __u8 request, __u8 requesttype, | ||
| 118 | __u16 value, __u16 index) | ||
| 119 | { | ||
| 120 | int result; | ||
| 121 | result = usb_control_msg(serial->dev, | ||
| 122 | usb_sndctrlpipe(serial->dev, 0), | ||
| 123 | request, requesttype, value, index, | ||
| 124 | NULL, 0x00, 1000); | ||
| 125 | dbg("%03d > ok", seq); | ||
| 126 | } | ||
| 127 | |||
| 128 | static inline void ARK3116_RCV(struct usb_serial *serial, int seq, | ||
| 129 | __u8 request, __u8 requesttype, | ||
| 130 | __u16 value, __u16 index, __u8 expected, | ||
| 131 | char *buf) | ||
| 132 | { | ||
| 133 | int result; | ||
| 134 | result = usb_control_msg(serial->dev, | ||
| 135 | usb_rcvctrlpipe(serial->dev, 0), | ||
| 136 | request, requesttype, value, index, | ||
| 137 | buf, 0x0000001, 1000); | ||
| 138 | if (result) | ||
| 139 | dbg("%03d < %d bytes [0x%02X]", seq, result, | ||
| 140 | ((unsigned char *)buf)[0]); | ||
| 141 | else | ||
| 142 | dbg("%03d < 0 bytes", seq); | ||
| 143 | } | ||
| 144 | |||
| 145 | static inline void ARK3116_RCV_QUIET(struct usb_serial *serial, | ||
| 146 | __u8 request, __u8 requesttype, | ||
| 147 | __u16 value, __u16 index, char *buf) | ||
| 148 | { | ||
| 149 | usb_control_msg(serial->dev, | ||
| 150 | usb_rcvctrlpipe(serial->dev, 0), | ||
| 151 | request, requesttype, value, index, | ||
| 152 | buf, 0x0000001, 1000); | ||
| 153 | } | ||
| 154 | |||
| 155 | static inline int calc_divisor(int bps) | 116 | static inline int calc_divisor(int bps) |
| 156 | { | 117 | { |
| 157 | /* Original ark3116 made some exceptions in rounding here | 118 | /* Original ark3116 made some exceptions in rounding here |
