[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Delete unused USB API functions



Please commit this patch.

Thanks.


Commit message:

Delete unused and not expected to be used functions from USB API.
Except in udd_defs.h they were already commented out.
Index: sys/usb/src.km/init.c
===================================================================
RCS file: /mint/freemint/sys/usb/src.km/init.c,v
retrieving revision 1.5
diff -u -8 -r1.5 init.c
--- sys/usb/src.km/init.c	1 Apr 2014 09:45:14 -0000	1.5
+++ sys/usb/src.km/init.c	7 Apr 2014 14:49:01 -0000
@@ -64,21 +64,16 @@
 
 void
 setup_usb_module_api(void)
 {
 	usb_api.udd_register = &udd_register;
 	usb_api.udd_unregister = &udd_unregister;
 //	usb_api.fname = &fname;
 
-
-//	usb_api.usb_init = &usb_init;
-//	usb_api.usb_stop = &usb_stop;
-
-
 	usb_api.usb_set_protocol = &usb_set_protocol;
 	usb_api.usb_set_idle = &usb_set_idle;
 	usb_api.usb_get_dev_index = &usb_get_dev_index;
 	usb_api.usb_control_msg = &usb_control_msg;
 	usb_api.usb_bulk_msg = &usb_bulk_msg;
 	usb_api.usb_submit_int_msg = &usb_submit_int_msg;
 	usb_api.usb_disable_asynch = &usb_disable_asynch;
 	usb_api.usb_maxpacket = &usb_maxpacket;
Index: sys/usb/src.km/usb_api.h
===================================================================
RCS file: /mint/freemint/sys/usb/src.km/usb_api.h,v
retrieving revision 1.2
diff -u -8 -r1.2 usb_api.h
--- sys/usb/src.km/usb_api.h	11 Jun 2013 17:33:27 -0000	1.2
+++ sys/usb/src.km/usb_api.h	7 Apr 2014 14:49:01 -0000
@@ -16,19 +16,16 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  * MA 02111-1307 USA
  */
 
 #define	udd_register 		(*api->udd_register)
 #define	udd_unregister 		(*api->udd_unregister)
 //#define	fname 			(*api->fname)
 
-//#define	usb_init 		(*api->usb_init)
-//#define	usb_stop 		(*api->usb_stop)
-
 #define	usb_set_protocol 	(*api->usb_set_protocol)
 #define	usb_set_idle 		(*api->usb_set_idle)
 #define	usb_get_dev_index 	(*api->usb_get_dev_index)
 #define	usb_control_msg 	(*api->usb_control_msg)
 #define	usb_bulk_msg 		(*api->usb_bulk_msg)
 #define	usb_submit_int_msg 	(*api->usb_submit_int_msg)
 #define	usb_disable_asynch 	(*api->usb_disable_asynch)
 #define	usb_maxpacket 		(*api->usb_maxpacket)
Index: sys/usb/src.km/udd/udd_defs.h
===================================================================
RCS file: /mint/freemint/sys/usb/src.km/udd/udd_defs.h,v
retrieving revision 1.4
diff -u -8 -r1.4 udd_defs.h
--- sys/usb/src.km/udd/udd_defs.h	19 Mar 2014 18:13:02 -0000	1.4
+++ sys/usb/src.km/udd/udd_defs.h	7 Apr 2014 14:49:01 -0000
@@ -58,21 +58,16 @@
 
 struct usb_module_api
 {
 //	short				(*getfreeunit)		(char *);
 	long				(*udd_register)		(struct uddif *, struct usb_driver *);
 	long				(*udd_unregister)	(struct uddif *, struct usb_driver *);
 	const char			*fname;
 
-
-	long			_cdecl	(*usb_init)		(long handle, const struct pci_device_id *ent); /* initialize the USB Controller */
-	long 			_cdecl	(*usb_stop)		(void); /* stop the USB Controller */
-
-
 	long			_cdecl	(*usb_set_protocol)	(struct usb_device *dev, long ifnum, long protocol);
 	long			_cdecl	(*usb_set_idle)		(struct usb_device *dev, long ifnum, long duration,
 								long report_id);
 	struct usb_device *	_cdecl	(*usb_get_dev_index)	(long idx);
 	long 			_cdecl	(*usb_control_msg)	(struct usb_device *dev, unsigned long pipe,
 								unsigned char request, unsigned char requesttype,
 								unsigned short value, unsigned short idx,
 								void *data, unsigned short size, long timeout);