mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
power: supply: tps65217: Use generic name for get_property()
Rename it as tps65217_charger_get_property(). Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
da50b3a584
commit
757620c4e4
@ -115,9 +115,9 @@ static int tps65217_enable_charging(struct tps65217_charger *charger)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tps65217_ac_get_property(struct power_supply *psy,
|
static int tps65217_charger_get_property(struct power_supply *psy,
|
||||||
enum power_supply_property psp,
|
enum power_supply_property psp,
|
||||||
union power_supply_propval *val)
|
union power_supply_propval *val)
|
||||||
{
|
{
|
||||||
struct tps65217_charger *charger = power_supply_get_drvdata(psy);
|
struct tps65217_charger *charger = power_supply_get_drvdata(psy);
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ static int tps65217_charger_poll_task(void *data)
|
|||||||
static const struct power_supply_desc tps65217_charger_desc = {
|
static const struct power_supply_desc tps65217_charger_desc = {
|
||||||
.name = "tps65217-ac",
|
.name = "tps65217-ac",
|
||||||
.type = POWER_SUPPLY_TYPE_MAINS,
|
.type = POWER_SUPPLY_TYPE_MAINS,
|
||||||
.get_property = tps65217_ac_get_property,
|
.get_property = tps65217_charger_get_property,
|
||||||
.properties = tps65217_charger_props,
|
.properties = tps65217_charger_props,
|
||||||
.num_properties = ARRAY_SIZE(tps65217_charger_props),
|
.num_properties = ARRAY_SIZE(tps65217_charger_props),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user