Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286401
b: refs/heads/master
c: c24e137
h: refs/heads/master
i:
  286399: d1e2e79
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jan 16, 2012
1 parent fd0d845 commit 489643a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: a081c3400ff2695244714293f5f6a4675c3a9493
refs/heads/master: c24e13713762a30f22468ac2c3d053abacb7672d
10 changes: 2 additions & 8 deletions trunk/drivers/media/video/pwc/pwc-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static struct usb_driver pwc_driver = {
int pwc_trace = PWC_DEBUG_LEVEL;
#endif
static int power_save = -1;
static int led_on = 100, led_off; /* defaults to LED that is on while in use */
static int leds[2] = { 100, 0 };

/***/

Expand Down Expand Up @@ -737,7 +737,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)

/* Turn on camera and set LEDS on */
pwc_camera_power(pdev, 1);
pwc_set_leds(pdev, led_on, led_off);
pwc_set_leds(pdev, leds[0], leds[1]);

r = pwc_isoc_init(pdev);
if (r) {
Expand Down Expand Up @@ -1209,7 +1209,6 @@ static void usb_pwc_disconnect(struct usb_interface *intf)
* Initialization code & module stuff
*/

static int leds[2] = { -1, -1 };
static unsigned int leds_nargs;

#ifdef CONFIG_USB_PWC_DEBUG
Expand All @@ -1232,11 +1231,6 @@ MODULE_VERSION( PWC_VERSION );

static int __init usb_pwc_init(void)
{
if (leds[0] >= 0)
led_on = leds[0];
if (leds[1] >= 0)
led_off = leds[1];

return usb_register(&pwc_driver);
}

Expand Down

0 comments on commit 489643a

Please sign in to comment.