Lines Matching refs:ac
117 struct power_supply *ac; member
629 power_supply_changed(bci->ac); in twl4030_charger_interrupt()
658 power_supply_changed(bci->ac); in twl4030_bci_interrupt()
697 if (dev == &bci->ac->dev) in twl4030_bci_max_current_store()
717 if (dev == &bci->ac->dev) { in twl4030_bci_max_current_show()
792 if (dev == &bci->ac->dev) { in twl4030_bci_mode_store()
818 if (dev == &bci->ac->dev) in twl4030_bci_mode_show()
1047 bci->ac = devm_power_supply_register(&pdev->dev, &twl4030_bci_ac_desc, in twl4030_bci_probe()
1049 if (IS_ERR(bci->ac)) { in twl4030_bci_probe()
1050 ret = PTR_ERR(bci->ac); in twl4030_bci_probe()
1121 if (device_create_file(&bci->ac->dev, &dev_attr_mode)) in twl4030_bci_probe()
1123 if (device_create_file(&bci->ac->dev, &dev_attr_max_current)) in twl4030_bci_probe()
1158 device_remove_file(&bci->ac->dev, &dev_attr_max_current); in twl4030_bci_remove()
1159 device_remove_file(&bci->ac->dev, &dev_attr_mode); in twl4030_bci_remove()