Lines Matching refs:power_supply
40 struct power_supply bat;
54 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info()
59 static inline struct power_supply *to_power_supply(struct device *dev) in to_power_supply()
387 static int ds2780_battery_get_property(struct power_supply *psy, in ds2780_battery_get_property()
461 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pmod_enabled()
480 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pmod_enabled()
515 struct power_supply *psy = to_power_supply(dev); in ds2780_get_sense_resistor_value()
533 struct power_supply *psy = to_power_supply(dev); in ds2780_set_sense_resistor_value()
553 struct power_supply *psy = to_power_supply(dev); in ds2780_get_rsgain_setting()
570 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting()
596 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pio_pin()
614 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pio_pin()
640 struct power_supply *psy = to_power_supply(dev); in ds2780_read_param_eeprom_bin()
657 struct power_supply *psy = to_power_supply(dev); in ds2780_write_param_eeprom_bin()
693 struct power_supply *psy = to_power_supply(dev); in ds2780_read_user_eeprom_bin()
710 struct power_supply *psy = to_power_supply(dev); in ds2780_write_user_eeprom_bin()