Skip to content

Commit 708007a

Browse files
marcanjannau
authored andcommitted
power: supply: macsmc_power: Use BUIC instead of BRSC for charge
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent bc7d93e commit 708007a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/power/supply/macsmc_power.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ static int macsmc_battery_get_property(struct power_supply *psy,
218218
val->intval = vu16 == 0xffff ? 0 : vu16 * 60;
219219
break;
220220
case POWER_SUPPLY_PROP_CAPACITY:
221-
ret = apple_smc_read_u16(power->smc, SMC_KEY(BRSC), &vu16);
222-
val->intval = vu16;
221+
ret = apple_smc_read_u8(power->smc, SMC_KEY(BUIC), &vu8);
222+
val->intval = vu8;
223223
break;
224224
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
225225
ret = apple_smc_read_u16(power->smc, SMC_KEY(B0AV), &vu16);

0 commit comments

Comments
 (0)