Skip to content

Commit 025f7dc

Browse files
committed
power: supply: macsmc_power: Use BUIC instead of BRSC for charge
Signed-off-by: Hector Martin <[email protected]>
1 parent 97a68e4 commit 025f7dc

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
@@ -219,8 +219,8 @@ static int macsmc_battery_get_property(struct power_supply *psy,
219219
val->intval = vu16 == 0xffff ? 0 : vu16 * 60;
220220
break;
221221
case POWER_SUPPLY_PROP_CAPACITY:
222-
ret = apple_smc_read_u16(power->smc, SMC_KEY(BRSC), &vu16);
223-
val->intval = vu16;
222+
ret = apple_smc_read_u8(power->smc, SMC_KEY(BUIC), &vu8);
223+
val->intval = vu8;
224224
break;
225225
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
226226
ret = apple_smc_read_u16(power->smc, SMC_KEY(B0AV), &vu16);

0 commit comments

Comments
 (0)