Lines Matching refs:ac
117 struct power_supply *ac; member
603 power_supply_changed(bci->ac); in twl4030_charger_interrupt()
632 power_supply_changed(bci->ac); in twl4030_bci_interrupt()
671 if (dev == &bci->ac->dev) in twl4030_bci_max_current_store()
691 if (dev == &bci->ac->dev) { in twl4030_bci_max_current_show()
766 if (dev == &bci->ac->dev) { in twl4030_bci_mode_store()
792 if (dev == &bci->ac->dev) in twl4030_bci_mode_show()
1021 bci->ac = devm_power_supply_register(&pdev->dev, &twl4030_bci_ac_desc, in twl4030_bci_probe()
1023 if (IS_ERR(bci->ac)) { in twl4030_bci_probe()
1024 ret = PTR_ERR(bci->ac); in twl4030_bci_probe()
1095 if (device_create_file(&bci->ac->dev, &dev_attr_mode)) in twl4030_bci_probe()
1097 if (device_create_file(&bci->ac->dev, &dev_attr_max_current)) in twl4030_bci_probe()
1132 device_remove_file(&bci->ac->dev, &dev_attr_max_current); in twl4030_bci_remove()
1133 device_remove_file(&bci->ac->dev, &dev_attr_mode); in twl4030_bci_remove()