Skip to content

Commit da48d93

Browse files
committed
power: supply: macsmc_power: Remove CSIL
Gone in Sequoia firmware. Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent c6ccbdd commit da48d93

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/power/supply/macsmc_power.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,6 @@ static int macsmc_battery_get_property(struct power_supply *psy,
396396
ret = apple_smc_read_u16(power->smc, SMC_KEY(B0RC), &vu16);
397397
val->intval = vu16 * 1000;
398398
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;
403399
case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX:
404400
ret = apple_smc_read_u16(power->smc, SMC_KEY(B0RI), &vu16);
405401
val->intval = vu16 * 1000;
@@ -562,7 +558,6 @@ static const enum power_supply_property macsmc_battery_props[] = {
562558
POWER_SUPPLY_PROP_VOLTAGE_MIN,
563559
POWER_SUPPLY_PROP_VOLTAGE_MAX,
564560
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT,
565-
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,
566561
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX,
567562
POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE,
568563
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,

0 commit comments

Comments
 (0)