Commit 5085d127 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Greg Kroah-Hartman

staging: rts5139: make some functions static in rts51x_transport.*

Signed-off-by: default avatarOleksij Rempel <bug-track@fisher-privat.net>
Acked-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 12ed793e
...@@ -120,7 +120,7 @@ unsigned int rts51x_access_sglist(unsigned char *buffer, ...@@ -120,7 +120,7 @@ unsigned int rts51x_access_sglist(unsigned char *buffer,
return cnt; return cnt;
} }
unsigned int rts51x_access_xfer_buf(unsigned char *buffer, static unsigned int rts51x_access_xfer_buf(unsigned char *buffer,
unsigned int buflen, struct scsi_cmnd *srb, unsigned int buflen, struct scsi_cmnd *srb,
struct scatterlist **sgptr, struct scatterlist **sgptr,
unsigned int *offset, enum xfer_buf_dir dir) unsigned int *offset, enum xfer_buf_dir dir)
...@@ -252,6 +252,8 @@ static int rts51x_msg_common(struct rts51x_chip *chip, struct urb *urb, ...@@ -252,6 +252,8 @@ static int rts51x_msg_common(struct rts51x_chip *chip, struct urb *urb,
return status; return status;
} }
static int rts51x_clear_halt(struct rts51x_chip *chip, unsigned int pipe);
/* /*
* Interpret the results of a URB transfer * Interpret the results of a URB transfer
*/ */
...@@ -359,7 +361,7 @@ int rts51x_ctrl_transfer(struct rts51x_chip *chip, unsigned int pipe, ...@@ -359,7 +361,7 @@ int rts51x_ctrl_transfer(struct rts51x_chip *chip, unsigned int pipe,
rts51x->current_urb->actual_length); rts51x->current_urb->actual_length);
} }
int rts51x_clear_halt(struct rts51x_chip *chip, unsigned int pipe) static int rts51x_clear_halt(struct rts51x_chip *chip, unsigned int pipe)
{ {
int result; int result;
int endp = usb_pipeendpoint(pipe); int endp = usb_pipeendpoint(pipe);
...@@ -394,14 +396,14 @@ static void rts51x_sg_clean(struct usb_sg_request *io) ...@@ -394,14 +396,14 @@ static void rts51x_sg_clean(struct usb_sg_request *io)
io->dev = NULL; io->dev = NULL;
} }
int rts51x_sg_init(struct usb_sg_request *io, struct usb_device *dev, static int rts51x_sg_init(struct usb_sg_request *io, struct usb_device *dev,
unsigned pipe, unsigned period, struct scatterlist *sg, unsigned pipe, unsigned period, struct scatterlist *sg,
int nents, size_t length, gfp_t mem_flags) int nents, size_t length, gfp_t mem_flags)
{ {
return usb_sg_init(io, dev, pipe, period, sg, nents, length, mem_flags); return usb_sg_init(io, dev, pipe, period, sg, nents, length, mem_flags);
} }
int rts51x_sg_wait(struct usb_sg_request *io, int timeout) static int rts51x_sg_wait(struct usb_sg_request *io, int timeout)
{ {
long timeleft; long timeleft;
int i; int i;
...@@ -532,7 +534,8 @@ static int rts51x_bulk_transfer_sglist(struct rts51x_chip *chip, ...@@ -532,7 +534,8 @@ static int rts51x_bulk_transfer_sglist(struct rts51x_chip *chip,
chip->usb->current_sg.bytes); chip->usb->current_sg.bytes);
} }
int rts51x_bulk_transfer_buf(struct rts51x_chip *chip, unsigned int pipe, static int rts51x_bulk_transfer_buf(struct rts51x_chip *chip,
unsigned int pipe,
void *buf, unsigned int length, void *buf, unsigned int length,
unsigned int *act_len, int timeout) unsigned int *act_len, int timeout)
{ {
......
...@@ -40,11 +40,6 @@ unsigned int rts51x_access_sglist(unsigned char *buffer, ...@@ -40,11 +40,6 @@ unsigned int rts51x_access_sglist(unsigned char *buffer,
unsigned int buflen, void *sglist, unsigned int buflen, void *sglist,
void **sgptr, unsigned int *offset, void **sgptr, unsigned int *offset,
enum xfer_buf_dir dir); enum xfer_buf_dir dir);
unsigned int rts51x_access_xfer_buf(unsigned char *buffer, unsigned int buflen,
struct scsi_cmnd *srb,
struct scatterlist **sgptr,
unsigned int *offset,
enum xfer_buf_dir dir);
void rts51x_set_xfer_buf(unsigned char *buffer, unsigned int buflen, void rts51x_set_xfer_buf(unsigned char *buffer, unsigned int buflen,
struct scsi_cmnd *srb); struct scsi_cmnd *srb);
void rts51x_get_xfer_buf(unsigned char *buffer, unsigned int buflen, void rts51x_get_xfer_buf(unsigned char *buffer, unsigned int buflen,
...@@ -53,7 +48,6 @@ void rts51x_get_xfer_buf(unsigned char *buffer, unsigned int buflen, ...@@ -53,7 +48,6 @@ void rts51x_get_xfer_buf(unsigned char *buffer, unsigned int buflen,
int rts51x_ctrl_transfer(struct rts51x_chip *chip, unsigned int pipe, int rts51x_ctrl_transfer(struct rts51x_chip *chip, unsigned int pipe,
u8 request, u8 requesttype, u16 value, u16 index, u8 request, u8 requesttype, u16 value, u16 index,
void *data, u16 size, int timeout); void *data, u16 size, int timeout);
int rts51x_clear_halt(struct rts51x_chip *chip, unsigned int pipe);
int rts51x_transfer_data(struct rts51x_chip *chip, unsigned int pipe, int rts51x_transfer_data(struct rts51x_chip *chip, unsigned int pipe,
void *buf, unsigned int len, int use_sg, void *buf, unsigned int len, int use_sg,
unsigned int *act_len, int timeout); unsigned int *act_len, int timeout);
......
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