Home
last modified time | relevance | path

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

/linux/drivers/leds/flash/
H A Dleds-tps6131x.c117 u32 max_torch_current_ma; member
612 tps6131x->max_torch_current_ma = UA_TO_MA(current_ua); in tps6131x_parse_node()
614 if (!tps6131x->max_torch_current_ma || in tps6131x_parse_node()
615 tps6131x->max_torch_current_ma > max_current_torch_ma || in tps6131x_parse_node()
616 (tps6131x->max_torch_current_ma % tps6131x->step_torch_current_ma)) { in tps6131x_parse_node()
679 led_cdev->max_brightness = tps6131x->max_torch_current_ma; in tps6131x_led_class_setup()
716 intensity->max = tps6131x->max_torch_current_ma; in tps6131x_v4l2_setup()
H A Dleds-qcom-flash.c185 u32 max_torch_current_ma; member
589 u32 current_ma = brightness * led->max_torch_current_ma / LED_FULL; in qcom_flash_led_brightness_set()
653 current_ma = min_t(u32, current_ma, led->max_torch_current_ma); in qcom_flash_intensity_to_led_brightness()
657 return (current_ma * LED_FULL) / led->max_torch_current_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()