diff options
-rw-r--r-- | drivers/media/video/gspca/ov519.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index d60322047265..2484e5222d4a 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c | |||
@@ -2639,14 +2639,14 @@ static void ov51x_led_control(struct sd *sd, int on) | |||
2639 | switch (sd->bridge) { | 2639 | switch (sd->bridge) { |
2640 | /* OV511 has no LED control */ | 2640 | /* OV511 has no LED control */ |
2641 | case BRIDGE_OV511PLUS: | 2641 | case BRIDGE_OV511PLUS: |
2642 | reg_w(sd, R511_SYS_LED_CTL, on ? 1 : 0); | 2642 | reg_w(sd, R511_SYS_LED_CTL, on); |
2643 | break; | 2643 | break; |
2644 | case BRIDGE_OV518: | 2644 | case BRIDGE_OV518: |
2645 | case BRIDGE_OV518PLUS: | 2645 | case BRIDGE_OV518PLUS: |
2646 | reg_w_mask(sd, R518_GPIO_OUT, on ? 0x02 : 0x00, 0x02); | 2646 | reg_w_mask(sd, R518_GPIO_OUT, 0x02 * on, 0x02); |
2647 | break; | 2647 | break; |
2648 | case BRIDGE_OV519: | 2648 | case BRIDGE_OV519: |
2649 | reg_w_mask(sd, OV519_GPIO_DATA_OUT0, !on, 1); /* 0 / 1 */ | 2649 | reg_w_mask(sd, OV519_GPIO_DATA_OUT0, on, 1); |
2650 | break; | 2650 | break; |
2651 | } | 2651 | } |
2652 | } | 2652 | } |
@@ -2938,7 +2938,7 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
2938 | struct cam *cam = &gspca_dev->cam; | 2938 | struct cam *cam = &gspca_dev->cam; |
2939 | 2939 | ||
2940 | sd->bridge = id->driver_info & BRIDGE_MASK; | 2940 | sd->bridge = id->driver_info & BRIDGE_MASK; |
2941 | sd->invert_led = id->driver_info & BRIDGE_INVERT_LED; | 2941 | sd->invert_led = (id->driver_info & BRIDGE_INVERT_LED) != 0; |
2942 | 2942 | ||
2943 | switch (sd->bridge) { | 2943 | switch (sd->bridge) { |
2944 | case BRIDGE_OV511: | 2944 | case BRIDGE_OV511: |