Lines Matching refs:val
254 union power_supply_propval *val)
260 val->intval = bq24735_charger_is_present(charger) ? 1 : 0;
265 val->intval = POWER_SUPPLY_STATUS_CHARGING;
268 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING;
271 val->intval = POWER_SUPPLY_STATUS_UNKNOWN;
284 const union power_supply_propval *val)
291 switch (val->intval) {
325 u32 val;
335 ret = of_property_read_u32(np, "ti,charge-current", &val);
337 pdata->charge_current = val;
339 ret = of_property_read_u32(np, "ti,charge-voltage", &val);
341 pdata->charge_voltage = val;
343 ret = of_property_read_u32(np, "ti,input-current", &val);
345 pdata->input_current = val;