Home
last modified time | relevance | path

Searched refs:UA_PER_MA (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/leds/flash/
H A Dleds-qcom-flash.c74 #define UA_PER_MA 1000 macro
186 itarg_ua = (current_ma * UA_PER_MA) / led->chan_count + 1; in set_flash_current()
295 led->flash_current_ma = min_t(u32, led->max_flash_current_ma, brightness / UA_PER_MA); in qcom_flash_brightness_set()
478 u32 current_ma = intensity / UA_PER_MA; in qcom_flash_intensity_to_led_brightness()
493 return (brightness * led->max_torch_current_ma * UA_PER_MA) / LED_FULL; in qcom_flash_brightness_to_led_intensity()
514 intensity->max = led->max_torch_current_ma * UA_PER_MA; in qcom_flash_v4l2_init()
599 led->max_torch_current_ma = current_ua / UA_PER_MA; in qcom_flash_register_led_device()
620 led->max_flash_current_ma = current_ua / UA_PER_MA; in qcom_flash_register_led_device()
621 led->flash_current_ma = brightness->val / UA_PER_MA; in qcom_flash_register_led_device()