Lines Matching refs:intval
198 val->intval = !!(reg & AXP20X_PWR_OP_BATT_PRESENT); in axp20x_battery_get_prop()
208 val->intval = POWER_SUPPLY_STATUS_CHARGING; in axp20x_battery_get_prop()
218 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in axp20x_battery_get_prop()
231 val->intval = POWER_SUPPLY_STATUS_FULL; in axp20x_battery_get_prop()
233 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in axp20x_battery_get_prop()
243 val->intval = POWER_SUPPLY_HEALTH_DEAD; in axp20x_battery_get_prop()
247 val->intval = POWER_SUPPLY_HEALTH_GOOD; in axp20x_battery_get_prop()
252 &val->intval); in axp20x_battery_get_prop()
258 val->intval = axp20x_batt->max_ccc; in axp20x_battery_get_prop()
268 ret = iio_read_channel_processed(axp20x_batt->batt_chrg_i, &val->intval); in axp20x_battery_get_prop()
271 val->intval = -val1; in axp20x_battery_get_prop()
277 val->intval *= 1000; in axp20x_battery_get_prop()
288 val->intval = 100; in axp20x_battery_get_prop()
303 val->intval = reg & AXP209_FG_PERCENT; in axp20x_battery_get_prop()
308 &val->intval); in axp20x_battery_get_prop()
315 val->intval = 2600000 + 100000 * (reg & AXP20X_V_OFF_MASK); in axp20x_battery_get_prop()
320 &val->intval); in axp20x_battery_get_prop()
325 val->intval *= 1000; in axp20x_battery_get_prop()
459 return axp20x_set_voltage_min_design(axp20x_batt, val->intval); in axp20x_battery_set_prop()
462 return axp20x_batt->data->set_max_voltage(axp20x_batt, val->intval); in axp20x_battery_set_prop()
466 val->intval); in axp20x_battery_set_prop()
469 val->intval); in axp20x_battery_set_prop()