Browse Source

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>
Arvid Brodin 14 years ago
parent
commit
6bda21bc09
2 changed files with 180 additions and 208 deletions
  1. 180 197
      drivers/usb/host/isp1760-hcd.c
  2. 0 11
      drivers/usb/host/isp1760-hcd.h

File diff suppressed because it is too large
+ 180 - 197
drivers/usb/host/isp1760-hcd.c


+ 0 - 11
drivers/usb/host/isp1760-hcd.h

@@ -107,8 +107,6 @@ struct ptd {
 #define PAYLOAD_OFFSET		0x1000
 #define PAYLOAD_OFFSET		0x1000
 
 
 struct inter_packet_info {
 struct inter_packet_info {
-#define PTD_FIRE_NEXT		(1 << 0)
-#define PTD_URB_FINISHED	(1 << 1)
 	struct isp1760_qh *qh;
 	struct isp1760_qh *qh;
 	struct isp1760_qtd *qtd;
 	struct isp1760_qtd *qtd;
 };
 };
@@ -117,15 +115,6 @@ struct inter_packet_info {
 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
 		struct isp1760_qtd *qtd);
 		struct isp1760_qtd *qtd);
 
 
-#define isp1760_dbg(priv, fmt, args...) \
-	dev_dbg(priv_to_hcd(priv)->self.controller, fmt, ##args)
-
-#define isp1760_info(priv, fmt, args...) \
-	dev_info(priv_to_hcd(priv)->self.controller, fmt, ##args)
-
-#define isp1760_err(priv, fmt, args...) \
-	dev_err(priv_to_hcd(priv)->self.controller, fmt, ##args)
-
 /*
 /*
  * Device flags that can vary from board to board.  All of these
  * Device flags that can vary from board to board.  All of these
  * indicate the most "atypical" case, so that a devflags of 0 is
  * indicate the most "atypical" case, so that a devflags of 0 is

Some files were not shown because too many files changed in this diff