Searched refs:battery_np (Results 1 – 1 of 1) sorted by relevance
574 struct device_node *battery_np = NULL; in power_supply_get_battery_info() local583 battery_np = of_parse_phandle(psy->of_node, "monitored-battery", 0); in power_supply_get_battery_info()584 if (!battery_np) in power_supply_get_battery_info()587 fwnode = fwnode_handle_get(of_fwnode_handle(battery_np)); in power_supply_get_battery_info()731 if (!battery_np) in power_supply_get_battery_info()734 len = of_property_count_u32_elems(battery_np, "ocv-capacity-celsius"); in power_supply_get_battery_info()743 of_property_read_u32_array(battery_np, "ocv-capacity-celsius", in power_supply_get_battery_info()758 list = of_get_property(battery_np, propname, &size); in power_supply_get_battery_info()787 list = of_get_property(battery_np, "resistance-temp-table", &len); in power_supply_get_battery_info()813 of_node_put(battery_np); in power_supply_get_battery_info()