mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
power: supply: core: Remove unused power_supply_set_battery_charged
power_supply_set_battery_charged() has been unused since 2019's
commit 0f884f8a09 ("ARM: pxa: remove raumfeld board files and
defconfig")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250307230225.128775-2-linux@treblig.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
76d5fb0e58
commit
46723e2839
|
|
@ -449,19 +449,6 @@ int power_supply_get_property_from_supplier(struct power_supply *psy,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(power_supply_get_property_from_supplier);
|
||||
|
||||
int power_supply_set_battery_charged(struct power_supply *psy)
|
||||
{
|
||||
if (atomic_read(&psy->use_cnt) >= 0 &&
|
||||
psy->desc->type == POWER_SUPPLY_TYPE_BATTERY &&
|
||||
psy->desc->set_charged) {
|
||||
psy->desc->set_charged(psy);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(power_supply_set_battery_charged);
|
||||
|
||||
static int power_supply_match_device_by_name(struct device *dev, const void *data)
|
||||
{
|
||||
const char *name = data;
|
||||
|
|
|
|||
|
|
@ -852,7 +852,6 @@ extern int power_supply_am_i_supplied(struct power_supply *psy);
|
|||
int power_supply_get_property_from_supplier(struct power_supply *psy,
|
||||
enum power_supply_property psp,
|
||||
union power_supply_propval *val);
|
||||
extern int power_supply_set_battery_charged(struct power_supply *psy);
|
||||
|
||||
static inline bool
|
||||
power_supply_supports_maintenance_charging(struct power_supply_battery_info *info)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user