summaryrefslogtreecommitdiffstats
path: root/libk8055
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-02-28 01:09:38 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-02-28 01:09:38 +0100
commitb9b95ea3c0a28abc62885658b0004a2ba5415bd2 (patch)
tree61e3b14df261bd2460e7db49e7feed43d21ce706 /libk8055
parent312b706d0a26b7c892b7f94a5e14a9bf2f09e06e (diff)
downloadk8055-b9b95ea3c0a28abc62885658b0004a2ba5415bd2.zip
k8055-b9b95ea3c0a28abc62885658b0004a2ba5415bd2.tar.gz
remove unused init_usb and ugly global variables
Diffstat (limited to 'libk8055')
-rw-r--r--libk8055/libk8055.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c
index 7de3919..47bef5e 100644
--- a/libk8055/libk8055.c
+++ b/libk8055/libk8055.c
@@ -118,10 +118,6 @@
/* set debug to 0 to not print excess info */
int debug = 0;
-/* variables for usb */
-static struct usb_bus *bus, *busses;
-static struct usb_device *dev;
-
/* globals for datatransfer */
struct k8055_dev {
unsigned char data_in[PACKET_LEN+1];
@@ -133,18 +129,6 @@ struct k8055_dev {
static struct k8055_dev k8055d[K8055_MAX_DEV];
static struct k8055_dev *curr_dev;
-/* Initialize the usb library - only once */
-static void init_usb(void) {
- static int init_done = 0;
- if (!init_done) {
- usb_init();
- usb_find_busses();
- usb_find_devices();
- busses = usb_get_busses();
- init_done = 1;
- }
-}
-
/* Actual read of data from the device endpoint, retry READ_RETRY times if not responding ok */
static int k8055_read( struct k8055_dev* dev ) {
if(dev->dev_no==0) return K8055_ERROR;