Lines Matching full:ma
401 static int get_charge_current(struct bd70528_psy *bdpsy, int *ma) in get_charge_current() argument
418 sel, ma); in get_charge_current()
428 static int get_current_limit(struct bd70528_psy *bdpsy, int *ma) in get_current_limit() argument
446 sel, ma); in get_current_limit()
448 /* Unspecified values mean 500 mA */ in get_current_limit()
449 *ma = 500; in get_current_limit()
518 static int set_charge_current(struct bd70528_psy *bdpsy, int ma) in set_charge_current() argument
524 if (ma > 500) { in set_charge_current()
526 "Requested charge current %u exceed maximum (500mA)\n", in set_charge_current()
527 ma); in set_charge_current()
531 if (ma < 10) { in set_charge_current()
533 "Requested charge current %u smaller than min (10mA)\n", in set_charge_current()
534 ma); in set_charge_current()
550 ma, ®, &found); in set_charge_current()
553 "Unsupported charge current %u mA\n", ma); in set_charge_current()
563 "Unsupported charge current %u mA\n", ma); in set_charge_current()
591 static int set_current_limit(struct bd70528_psy *bdpsy, int ma) in set_current_limit() argument
597 if (ma > 500) { in set_current_limit()
599 "Requested current limit %u exceed maximum (500mA)\n", in set_current_limit()
600 ma); in set_current_limit()
604 if (ma < 5) { in set_current_limit()
606 "Requested current limit %u smaller than min (5mA)\n", in set_current_limit()
607 ma); in set_current_limit()
615 ma, ®, &found); in set_current_limit()
617 dev_err(bdpsy->dev, "Unsupported current limit %umA\n", ma); in set_current_limit()
627 dev_warn(bdpsy->dev, "Unsupported current limit %umA\n", ma); in set_current_limit()