Searched refs:ac_chg (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/power/
H A Dpm2301_charger.c34 struct pm2xxx_charger, ac_chg)
219 power_supply_changed(pm2->ac_chg.psy); pm2xxx_charger_ovv_mngt()
232 power_supply_changed(pm2->ac_chg.psy); pm2xxx_charger_wd_exp_mngt()
819 power_supply_changed(pm2->ac_chg.psy); pm2xxx_charger_ac_en()
848 power_supply_changed(pm2->ac_chg.psy); pm2xxx_charger_ac_work()
849 sysfs_notify(&pm2->ac_chg.psy->dev.kobj, NULL, "present"); pm2xxx_charger_ac_work()
865 power_supply_changed(pm2->ac_chg.psy); pm2xxx_charger_check_hw_failure_work()
898 power_supply_changed(pm2->ac_chg.psy); pm2xxx_charger_check_main_thermal_prot_work()
1055 pm2->ac_chg.ops.enable = &pm2xxx_charger_ac_en; pm2xxx_wall_charger_probe()
1056 pm2->ac_chg.ops.kick_wd = &pm2xxx_charger_watchdog_kick; pm2xxx_wall_charger_probe()
1057 pm2->ac_chg.ops.update_curr = &pm2xxx_charger_update_charger_current; pm2xxx_wall_charger_probe()
1058 pm2->ac_chg.max_out_volt = pm2xxx_charger_voltage_map[ pm2xxx_wall_charger_probe()
1060 pm2->ac_chg.max_out_curr = pm2xxx_charger_current_map[ pm2xxx_wall_charger_probe()
1062 pm2->ac_chg.wdt_refresh = WD_KICK_INTERVAL; pm2xxx_wall_charger_probe()
1063 pm2->ac_chg.enabled = true; pm2xxx_wall_charger_probe()
1064 pm2->ac_chg.external = true; pm2xxx_wall_charger_probe()
1098 pm2->ac_chg.psy = power_supply_register(pm2->dev, &pm2->ac_chg_desc, pm2xxx_wall_charger_probe()
1100 if (IS_ERR(pm2->ac_chg.psy)) { pm2xxx_wall_charger_probe()
1102 ret = PTR_ERR(pm2->ac_chg.psy); pm2xxx_wall_charger_probe()
1174 power_supply_changed(pm2->ac_chg.psy); pm2xxx_wall_charger_probe()
1175 sysfs_notify(&pm2->ac_chg.psy->dev.kobj, NULL, "present"); pm2xxx_wall_charger_probe()
1190 power_supply_unregister(pm2->ac_chg.psy); pm2xxx_wall_charger_probe()
1209 pm2xxx_charger_ac_en(&pm2->ac_chg, false, 0, 0); pm2xxx_wall_charger_remove()
1225 power_supply_unregister(pm2->ac_chg.psy); pm2xxx_wall_charger_remove()
H A Dabx500_chargalg.c257 struct ux500_charger *ac_chg; member in struct:abx500_chargalg
365 !(di->ac_chg->external)) { abx500_chargalg_check_charger_enable()
366 return di->ac_chg->ops.check_enable(di->ac_chg, abx500_chargalg_check_charger_enable()
520 if (di->ac_chg && di->ac_chg->ops.kick_wd && abx500_chargalg_kick_watchdog()
527 if (di->ac_chg->external && abx500_chargalg_kick_watchdog()
531 return di->ac_chg->ops.kick_wd(di->ac_chg); abx500_chargalg_kick_watchdog()
555 if (!di->ac_chg || !di->ac_chg->ops.enable) abx500_chargalg_ac_en()
559 if (di->ac_chg->max_out_volt) abx500_chargalg_ac_en()
560 vset = min(vset, di->ac_chg->max_out_volt); abx500_chargalg_ac_en()
561 if (di->ac_chg->max_out_curr) abx500_chargalg_ac_en()
562 iset = min(iset, di->ac_chg->max_out_curr); abx500_chargalg_ac_en()
568 if (enable && di->ac_chg->external && abx500_chargalg_ac_en()
575 return di->ac_chg->ops.enable(di->ac_chg, enable, vset, iset); abx500_chargalg_ac_en()
649 if (di->ac_chg && di->ac_chg->ops.update_curr && abx500_chargalg_update_chg_curr()
655 if (di->ac_chg->max_out_curr) abx500_chargalg_update_chg_curr()
656 iset = min(iset, di->ac_chg->max_out_curr); abx500_chargalg_update_chg_curr()
660 return di->ac_chg->ops.update_curr(di->ac_chg, iset); abx500_chargalg_update_chg_curr()
1014 if (!di->ac_chg && abx500_chargalg_get_ext_psy_data()
1016 di->ac_chg = psy_to_ux500_charger(ext); abx500_chargalg_get_ext_psy_data()
H A Dab8500_charger.c171 struct ab8500_charger, ac_chg)
243 * @ac_chg: AC charger power supply
293 struct ux500_charger ac_chg; member in struct:ab8500_charger
1519 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_ac_en()
2052 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_check_hw_failure_work()
2135 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_ac_work()
2136 sysfs_notify(&di->ac_chg.psy->dev.kobj, NULL, "present"); ab8500_charger_ac_work()
2203 ab8500_charger_ac_en(&di->ac_chg, 0, 0, 0); ab8500_charger_ac_attached_work()
2563 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_check_main_thermal_prot_work()
2654 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_mainextchnotok_handler()
2883 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_chwdexp_handler()
3401 ab8500_charger_ac_en(&di->ac_chg, false, 0, 0); ab8500_charger_remove()
3425 if (!di->ac_chg.enabled) ab8500_charger_remove()
3433 if (di->ac_chg.enabled && !di->ac_chg.external) ab8500_charger_remove()
3434 power_supply_unregister(di->ac_chg.psy); ab8500_charger_remove()
3506 ac_psy_cfg.drv_data = &di->ac_chg; ab8500_charger_probe()
3513 di->ac_chg.ops.enable = &ab8500_charger_ac_en; ab8500_charger_probe()
3514 di->ac_chg.ops.check_enable = &ab8500_charger_ac_check_enable; ab8500_charger_probe()
3515 di->ac_chg.ops.kick_wd = &ab8500_charger_watchdog_kick; ab8500_charger_probe()
3516 di->ac_chg.ops.update_curr = &ab8500_charger_update_charger_current; ab8500_charger_probe()
3517 di->ac_chg.max_out_volt = ab8500_charger_voltage_map[ ab8500_charger_probe()
3519 di->ac_chg.max_out_curr = ab8500_charger_probe()
3521 di->ac_chg.wdt_refresh = CHG_WD_INTERVAL; ab8500_charger_probe()
3522 di->ac_chg.enabled = di->bm->ac_enabled; ab8500_charger_probe()
3523 di->ac_chg.external = false; ab8500_charger_probe()
3526 if (!di->ac_chg.enabled) ab8500_charger_probe()
3627 if (di->ac_chg.enabled) { ab8500_charger_probe()
3628 di->ac_chg.psy = power_supply_register(di->dev, ab8500_charger_probe()
3631 if (IS_ERR(di->ac_chg.psy)) { ab8500_charger_probe()
3633 ret = PTR_ERR(di->ac_chg.psy); ab8500_charger_probe()
3668 ab8500_power_supply_changed(di, di->ac_chg.psy); ab8500_charger_probe()
3669 sysfs_notify(&di->ac_chg.psy->dev.kobj, NULL, "present"); ab8500_charger_probe()
3732 if (di->ac_chg.enabled) ab8500_charger_probe()
3733 power_supply_unregister(di->ac_chg.psy); ab8500_charger_probe()
H A Dpm2301_charger.h488 struct ux500_charger ac_chg; member in struct:pm2xxx_charger

Completed in 278 milliseconds