Lines Matching refs:info
1198 * These properties come from the battery info, still we need to
1234 struct power_supply_battery_info info = {};
1243 err = power_supply_get_battery_info(supply, &info);
1249 if (info.constant_charge_current_max_ua != -EINVAL)
1250 smb->max_charge_current = info.constant_charge_current_max_ua;
1252 if (info.constant_charge_voltage_max_uv != -EINVAL)
1253 smb->max_charge_voltage = info.constant_charge_voltage_max_uv;
1255 if (info.precharge_current_ua != -EINVAL)
1256 smb->pre_charge_current = info.precharge_current_ua;
1258 if (info.charge_term_current_ua != -EINVAL)
1259 smb->termination_current = info.charge_term_current_ua;
1261 if (info.temp_alert_min != INT_MIN)
1262 smb->soft_cold_temp_limit = info.temp_alert_min;
1264 if (info.temp_alert_max != INT_MAX)
1265 smb->soft_hot_temp_limit = info.temp_alert_max;
1267 if (info.temp_min != INT_MIN)
1268 smb->hard_cold_temp_limit = info.temp_min;
1270 if (info.temp_max != INT_MAX)
1271 smb->hard_hot_temp_limit = info.temp_max;