mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
power: supply: rk818-battery/charger: clear unused variables
This commit is contained in:
@@ -3400,7 +3400,7 @@ static int rk818_battery_resume(struct platform_device *dev)
|
||||
{
|
||||
struct rk818_battery *di = platform_get_drvdata(dev);
|
||||
int interval_sec, time_step, pwroff_vol;
|
||||
u8 val, st;
|
||||
u8 st;
|
||||
|
||||
di->s2r = true;
|
||||
di->current_avg = rk818_bat_get_avg_current(di);
|
||||
|
||||
@@ -538,7 +538,6 @@ static int rk818_charger_set_property(struct power_supply *psy,
|
||||
const union power_supply_propval *val)
|
||||
{
|
||||
struct rk818_charger *cg = power_supply_get_drvdata(psy);
|
||||
int ret;
|
||||
|
||||
switch (psp) {
|
||||
case POWER_SUPPLY_PROP_CHARGE_BEHAVIOUR:
|
||||
|
||||
Reference in New Issue
Block a user