Searched refs:UA_PER_MA (Results 1 – 1 of 1) sorted by relevance
77 #define UA_PER_MA 1000 macro351 itarg_ua = (current_ma * UA_PER_MA) / led->chan_count + 1; in set_flash_current()460 led->flash_current_ma = min_t(u32, led->max_flash_current_ma, brightness / UA_PER_MA); in qcom_flash_brightness_set()651 u32 current_ma = intensity / UA_PER_MA; in qcom_flash_intensity_to_led_brightness()666 return (brightness * led->max_torch_current_ma * UA_PER_MA) / LED_FULL; in qcom_flash_brightness_to_led_intensity()687 intensity->max = led->max_torch_current_ma * UA_PER_MA; in qcom_flash_v4l2_init()773 led->max_torch_current_ma = current_ua / UA_PER_MA; in qcom_flash_register_led_device()800 led->max_flash_current_ma = current_ua / UA_PER_MA; in qcom_flash_register_led_device()801 led->flash_current_ma = brightness->val / UA_PER_MA; in qcom_flash_register_led_device()