diff options
author | Ming Lei <tom.leiming@gmail.com> | 2008-02-24 05:41:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:55 -0400 |
commit | cdc97792289179974af6dda781c855696358d307 (patch) | |
tree | d633d7e5bd0b14b7581e20790c1a83baadfad80c /drivers/usb/serial/iuu_phoenix.c | |
parent | a5b6f60c5a30c494017c7a2d11c4067f90d3d0df (diff) |
USB: remove unnecessary type casting of urb->context
urb->context code cleanup
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/iuu_phoenix.c')
-rw-r--r-- | drivers/usb/serial/iuu_phoenix.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index b486a54c6f46..8a217648b250 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -186,7 +186,7 @@ static int iuu_tiocmget(struct usb_serial_port *port, struct file *file) | |||
186 | 186 | ||
187 | static void iuu_rxcmd(struct urb *urb) | 187 | static void iuu_rxcmd(struct urb *urb) |
188 | { | 188 | { |
189 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 189 | struct usb_serial_port *port = urb->context; |
190 | int result; | 190 | int result; |
191 | dbg("%s - enter", __func__); | 191 | dbg("%s - enter", __func__); |
192 | 192 | ||
@@ -240,7 +240,7 @@ static int iuu_reset(struct usb_serial_port *port, u8 wt) | |||
240 | */ | 240 | */ |
241 | static void iuu_update_status_callback(struct urb *urb) | 241 | static void iuu_update_status_callback(struct urb *urb) |
242 | { | 242 | { |
243 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 243 | struct usb_serial_port *port = urb->context; |
244 | struct iuu_private *priv = usb_get_serial_port_data(port); | 244 | struct iuu_private *priv = usb_get_serial_port_data(port); |
245 | u8 *st; | 245 | u8 *st; |
246 | dbg("%s - enter", __func__); | 246 | dbg("%s - enter", __func__); |
@@ -270,7 +270,7 @@ static void iuu_update_status_callback(struct urb *urb) | |||
270 | 270 | ||
271 | static void iuu_status_callback(struct urb *urb) | 271 | static void iuu_status_callback(struct urb *urb) |
272 | { | 272 | { |
273 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 273 | struct usb_serial_port *port = urb->context; |
274 | int result; | 274 | int result; |
275 | dbg("%s - enter", __func__); | 275 | dbg("%s - enter", __func__); |
276 | 276 | ||
@@ -392,7 +392,7 @@ static void iuu_rgbf_fill_buffer(u8 *buf, u8 r1, u8 r2, u8 g1, u8 g2, u8 b1, | |||
392 | 392 | ||
393 | static void iuu_led_activity_on(struct urb *urb) | 393 | static void iuu_led_activity_on(struct urb *urb) |
394 | { | 394 | { |
395 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 395 | struct usb_serial_port *port = urb->context; |
396 | int result; | 396 | int result; |
397 | char *buf_ptr = port->write_urb->transfer_buffer; | 397 | char *buf_ptr = port->write_urb->transfer_buffer; |
398 | *buf_ptr++ = IUU_SET_LED; | 398 | *buf_ptr++ = IUU_SET_LED; |
@@ -413,7 +413,7 @@ static void iuu_led_activity_on(struct urb *urb) | |||
413 | 413 | ||
414 | static void iuu_led_activity_off(struct urb *urb) | 414 | static void iuu_led_activity_off(struct urb *urb) |
415 | { | 415 | { |
416 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 416 | struct usb_serial_port *port = urb->context; |
417 | int result; | 417 | int result; |
418 | char *buf_ptr = port->write_urb->transfer_buffer; | 418 | char *buf_ptr = port->write_urb->transfer_buffer; |
419 | if (xmas == 1) { | 419 | if (xmas == 1) { |
@@ -616,7 +616,7 @@ static int iuu_uart_flush(struct usb_serial_port *port) | |||
616 | 616 | ||
617 | static void read_buf_callback(struct urb *urb) | 617 | static void read_buf_callback(struct urb *urb) |
618 | { | 618 | { |
619 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 619 | struct usb_serial_port *port = urb->context; |
620 | unsigned char *data = urb->transfer_buffer; | 620 | unsigned char *data = urb->transfer_buffer; |
621 | struct tty_struct *tty; | 621 | struct tty_struct *tty; |
622 | dbg("%s - urb->status = %d", __func__, urb->status); | 622 | dbg("%s - urb->status = %d", __func__, urb->status); |
@@ -692,7 +692,7 @@ static int iuu_read_buf(struct usb_serial_port *port, int len) | |||
692 | 692 | ||
693 | static void iuu_uart_read_callback(struct urb *urb) | 693 | static void iuu_uart_read_callback(struct urb *urb) |
694 | { | 694 | { |
695 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 695 | struct usb_serial_port *port = urb->context; |
696 | struct iuu_private *priv = usb_get_serial_port_data(port); | 696 | struct iuu_private *priv = usb_get_serial_port_data(port); |
697 | unsigned int flags; | 697 | unsigned int flags; |
698 | int status; | 698 | int status; |
@@ -781,7 +781,7 @@ static int iuu_uart_write(struct usb_serial_port *port, const u8 *buf, | |||
781 | 781 | ||
782 | static void read_rxcmd_callback(struct urb *urb) | 782 | static void read_rxcmd_callback(struct urb *urb) |
783 | { | 783 | { |
784 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 784 | struct usb_serial_port *port = urb->context; |
785 | int result; | 785 | int result; |
786 | dbg("%s - enter", __func__); | 786 | dbg("%s - enter", __func__); |
787 | 787 | ||