diff options
author | Arvid Brodin <arvid.brodin@enea.com> | 2011-02-26 16:06:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-28 22:23:38 -0500 |
commit | 6bda21bc0941c11f07cbf436ff6ca85e7e6e47f0 (patch) | |
tree | f0a871bace736393a9bbdd03dcfac80fe4ab601a /drivers/usb/host/isp1760-hcd.h | |
parent | bbaa387674b65a2f784631cc4c87c77ec9d3374e (diff) |
usb/isp1760: Consolidate printouts and remove unused code
Consolidate printouts to use dev_XXX functions instead of an assortment of
printks and driver specific macros. Remove some unused code snippets and struct
members. Remove some unused function parameters and #defines. Change the
"queue_entry" variable name which has different but related meanings in
different places and use "slot" only.
Signed-off-by: Arvid Brodin <arvid.brodin@enea.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/isp1760-hcd.h')
-rw-r--r-- | drivers/usb/host/isp1760-hcd.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/host/isp1760-hcd.h b/drivers/usb/host/isp1760-hcd.h index aadd77bc271c..870507690607 100644 --- a/drivers/usb/host/isp1760-hcd.h +++ b/drivers/usb/host/isp1760-hcd.h | |||
@@ -107,8 +107,6 @@ struct ptd { | |||
107 | #define PAYLOAD_OFFSET 0x1000 | 107 | #define PAYLOAD_OFFSET 0x1000 |
108 | 108 | ||
109 | struct inter_packet_info { | 109 | struct inter_packet_info { |
110 | #define PTD_FIRE_NEXT (1 << 0) | ||
111 | #define PTD_URB_FINISHED (1 << 1) | ||
112 | struct isp1760_qh *qh; | 110 | struct isp1760_qh *qh; |
113 | struct isp1760_qtd *qtd; | 111 | struct isp1760_qtd *qtd; |
114 | }; | 112 | }; |
@@ -117,15 +115,6 @@ struct inter_packet_info { | |||
117 | typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh, | 115 | typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh, |
118 | struct isp1760_qtd *qtd); | 116 | struct isp1760_qtd *qtd); |
119 | 117 | ||
120 | #define isp1760_dbg(priv, fmt, args...) \ | ||
121 | dev_dbg(priv_to_hcd(priv)->self.controller, fmt, ##args) | ||
122 | |||
123 | #define isp1760_info(priv, fmt, args...) \ | ||
124 | dev_info(priv_to_hcd(priv)->self.controller, fmt, ##args) | ||
125 | |||
126 | #define isp1760_err(priv, fmt, args...) \ | ||
127 | dev_err(priv_to_hcd(priv)->self.controller, fmt, ##args) | ||
128 | |||
129 | /* | 118 | /* |
130 | * Device flags that can vary from board to board. All of these | 119 | * Device flags that can vary from board to board. All of these |
131 | * indicate the most "atypical" case, so that a devflags of 0 is | 120 | * indicate the most "atypical" case, so that a devflags of 0 is |