Home
last modified time | relevance | path

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

/linux/drivers/leds/flash/
H A Dleds-qcom-flash.c722 u32 current_ua, timeout_us; in qcom_flash_register_led_device() local
761 rc = fwnode_property_read_u32(node, "led-max-microamp", &current_ua); in qcom_flash_register_led_device()
767 if (current_ua == 0) { in qcom_flash_register_led_device()
772 current_ua = min_t(u32, current_ua, TORCH_CURRENT_MAX_UA * led->chan_count); in qcom_flash_register_led_device()
773 led->max_torch_current_ma = current_ua / UA_PER_MA; in qcom_flash_register_led_device()
775 torch_clamp = (current_ua / led->chan_count) / TORCH_IRES_UA; in qcom_flash_register_led_device()
784 rc = fwnode_property_read_u32(node, "flash-max-microamp", &current_ua); in qcom_flash_register_led_device()
791 current_ua = min_t(u32, current_ua, FLASH_CURRENT_MAX_UA * led->chan_count); in qcom_flash_register_led_device()
792 current_ua = min_t(u32, current_ua, FLASH_TOTAL_CURRENT_MAX_UA); in qcom_flash_register_led_device()
797 brightness->max = current_ua; in qcom_flash_register_led_device()
[all …]
H A Dleds-tps6131x.c538 u32 current_ua; in tps6131x_parse_node() local
606 ret = fwnode_property_read_u32(tps6131x->led_node, "led-max-microamp", &current_ua); in tps6131x_parse_node()
612 tps6131x->max_torch_current_ma = UA_TO_MA(current_ua); in tps6131x_parse_node()
622 ret = fwnode_property_read_u32(tps6131x->led_node, "flash-max-microamp", &current_ua); in tps6131x_parse_node()
628 tps6131x->max_flash_current_ma = UA_TO_MA(current_ua); in tps6131x_parse_node()
/linux/drivers/power/supply/
H A Dcpcap-battery.c117 int current_ua; member
532 if (state->current_ua > 0 && (state->voltage <= 3350000 || is_low)) in cpcap_battery_low()
560 state.current_ua = cpcap_battery_get_current(ddata); in cpcap_battery_update_status()
700 val->intval = latest->current_ua; in cpcap_battery_get_property()
706 tmp = (latest->voltage / 10000) * latest->current_ua; in cpcap_battery_get_property()
894 if (latest->current_ua >= 0) in cpcap_battery_irq_thread()
899 if (latest->current_ua >= 0 && latest->voltage <= 3200000) { in cpcap_battery_irq_thread()
H A Dqcom_smbx.c549 unsigned int charger_type, current_ua; in smb_status_change_work() local
584 current_ua = CDP_CURRENT_UA; in smb_status_change_work()
587 current_ua = DCP_CURRENT_UA; in smb_status_change_work()
591 current_ua = SDP_CURRENT_UA; in smb_status_change_work()
595 smb_set_current_limit(chip, current_ua); in smb_status_change_work()