leds: leds-rgb13h: Intensity can be set in any mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I16f70e812d2b0932f7d1a39d8c819975760c9f6d
This commit is contained in:
parent
614dbbdcda
commit
73ac2e5cb6
1 changed files with 1 additions and 3 deletions
|
|
@ -359,14 +359,12 @@ static int rgb13h_set_ctrl(struct v4l2_ctrl *ctrl)
|
|||
case V4L2_CID_FLASH_TIMEOUT:
|
||||
return rgb13h_led_flash_timeout_set(&led->fled_cdev, ctrl->val);
|
||||
case V4L2_CID_FLASH_INTENSITY:
|
||||
if (led->led_mode != V4L2_FLASH_LED_MODE_FLASH)
|
||||
return -EBUSY;
|
||||
led->intensity = ctrl->val;
|
||||
break;
|
||||
case V4L2_CID_FLASH_TORCH_INTENSITY:
|
||||
led->intensity_torch = ctrl->val;
|
||||
if (led->led_mode != V4L2_FLASH_LED_MODE_TORCH)
|
||||
break;
|
||||
led->intensity_torch = ctrl->val;
|
||||
return rgb13h_set_output(led, LED_ON);
|
||||
default:
|
||||
dev_err(&led->pdev->dev,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue