Lines Matching full:mains
134 * @mains: power_supply instance for AC/DC power
190 struct power_supply *mains; member
805 power_supply_changed(smb->mains); in smb347_interrupt()
819 power_supply_changed(smb->mains); in smb347_interrupt()
837 power_supply_changed(smb->mains); in smb347_interrupt()
851 power_supply_changed(smb->mains); in smb347_interrupt()
1196 device_property_read_u32(dev, "summit,mains-current-limit-microamp", in smb347_dt_parse_dev_info()
1210 smb->use_mains = device_property_read_bool(dev, "summit,enable-mains-charging"); in smb347_dt_parse_dev_info()
1225 if (smb->mains) in smb347_get_battery_info()
1226 supply = smb->mains; in smb347_get_battery_info()
1277 .name = "smb347-mains",
1318 smb->mains = devm_power_supply_register(dev, &smb347_mains_desc, in smb347_probe()
1320 if (IS_ERR(smb->mains)) in smb347_probe()
1321 return PTR_ERR(smb->mains); in smb347_probe()