Lines Matching refs:psy
12 struct power_supply *psy; member
135 if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 && in power_supply_hwmon_is_visible()
156 struct power_supply *psy = psyhw->psy; in power_supply_hwmon_read() local
164 ret = power_supply_get_property(psy, prop, &pspval); in power_supply_hwmon_read()
200 struct power_supply *psy = psyhw->psy; in power_supply_hwmon_write() local
232 return power_supply_set_property(psy, prop, &pspval); in power_supply_hwmon_write()
280 int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs() argument
282 const struct power_supply_desc *desc = psy->desc; in power_supply_add_hwmon_sysfs()
284 struct device *dev = &psy->dev; in power_supply_add_hwmon_sysfs()
299 psyhw->psy = psy; in power_supply_add_hwmon_sysfs()
338 name = psy->desc->name; in power_supply_add_hwmon_sysfs()
365 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) in power_supply_remove_hwmon_sysfs() argument
367 devres_release_group(&psy->dev, power_supply_add_hwmon_sysfs); in power_supply_remove_hwmon_sysfs()