mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Merge "leds: qti-flash: Update camera flash client interface options"
This commit is contained in:
commit
adeddcb4f7
2 changed files with 8 additions and 1 deletions
|
|
@ -952,6 +952,11 @@ int qti_flash_led_prepare(struct led_trigger *trig, int options,
|
|||
snode = container_of(led_cdev, struct flash_switch_data, cdev);
|
||||
|
||||
if (options & QUERY_MAX_AVAIL_CURRENT) {
|
||||
if (!max_current) {
|
||||
pr_err("Invalid max_current pointer\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
rc = qti_flash_led_get_max_avail_current(snode->led,
|
||||
max_current);
|
||||
if (rc < 0) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
|
||||
#include <linux/leds.h>
|
||||
|
||||
#define QUERY_MAX_AVAIL_CURRENT BIT(0)
|
||||
#define ENABLE_REGULATOR BIT(0)
|
||||
#define DISABLE_REGULATOR BIT(1)
|
||||
#define QUERY_MAX_AVAIL_CURRENT BIT(2)
|
||||
|
||||
/**
|
||||
* struct flash_led_param: QTI flash LED parameter data
|
||||
|
|
|
|||
Loading…
Reference in a new issue