Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39702
b: refs/heads/master
c: 3f53069
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Oct 16, 2006
1 parent 10edad0 commit 621fea3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74da626a1098640ddc40c0e3481c0cd41e8ec1e9
refs/heads/master: 3f5306927d800306ebba542438cfdf1a1c418376
17 changes: 7 additions & 10 deletions trunk/drivers/bluetooth/bcm203x.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/timer.h>

#include <linux/device.h>
#include <linux/firmware.h>
Expand All @@ -43,7 +42,7 @@
#define BT_DBG(D...)
#endif

#define VERSION "1.0"
#define VERSION "1.1"

static int ignore = 0;

Expand Down Expand Up @@ -72,7 +71,7 @@ struct bcm203x_data {

unsigned long state;

struct timer_list timer;
struct work_struct work;

struct urb *urb;
unsigned char *buffer;
Expand Down Expand Up @@ -105,7 +104,7 @@ static void bcm203x_complete(struct urb *urb)

data->state = BCM203X_SELECT_MEMORY;

mod_timer(&data->timer, jiffies + (HZ / 10));
schedule_work(&data->work);
break;

case BCM203X_SELECT_MEMORY:
Expand Down Expand Up @@ -158,9 +157,9 @@ static void bcm203x_complete(struct urb *urb)
}
}

static void bcm203x_timer(unsigned long user_data)
static void bcm203x_work(void *user_data)
{
struct bcm203x_data *data = (struct bcm203x_data *) user_data;
struct bcm203x_data *data = user_data;

if (usb_submit_urb(data->urb, GFP_ATOMIC) < 0)
BT_ERR("Can't submit URB");
Expand Down Expand Up @@ -247,13 +246,11 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id

release_firmware(firmware);

init_timer(&data->timer);
data->timer.function = bcm203x_timer;
data->timer.data = (unsigned long) data;
INIT_WORK(&data->work, bcm203x_work, (void *) data);

usb_set_intfdata(intf, data);

mod_timer(&data->timer, jiffies + HZ);
schedule_work(&data->work);

return 0;
}
Expand Down

0 comments on commit 621fea3

Please sign in to comment.