Skip to content

Commit d82cb3e

Browse files
marcanjannau
authored andcommitted
power: supply: macsmc_power: Remove CSIL
Gone in Sequoia firmware. Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 9e19732 commit d82cb3e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/power/supply/macsmc_power.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ static int macsmc_battery_get_property(struct power_supply *psy,
320320
int ret = 0;
321321
u8 vu8;
322322
u16 vu16;
323-
u32 vu32;
324323
s16 vs16;
325324
s32 vs32;
326325
s64 vs64;
@@ -396,10 +395,6 @@ static int macsmc_battery_get_property(struct power_supply *psy,
396395
ret = apple_smc_read_u16(power->smc, SMC_KEY(B0RC), &vu16);
397396
val->intval = vu16 * 1000;
398397
break;
399-
case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT:
400-
ret = apple_smc_read_u32(power->smc, SMC_KEY(CSIL), &vu32);
401-
val->intval = vu32 * 1000;
402-
break;
403398
case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX:
404399
ret = apple_smc_read_u16(power->smc, SMC_KEY(B0RI), &vu16);
405400
val->intval = vu16 * 1000;
@@ -562,7 +557,6 @@ static const enum power_supply_property macsmc_battery_props[] = {
562557
POWER_SUPPLY_PROP_VOLTAGE_MIN,
563558
POWER_SUPPLY_PROP_VOLTAGE_MAX,
564559
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT,
565-
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,
566560
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX,
567561
POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE,
568562
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,

0 commit comments

Comments
 (0)