Skip to content

Commit 749225c

Browse files
committed
fixup! hwmon: add macsmc-hwmon driver
Signed-off-by: Janne Grunau <[email protected]>
1 parent e46da21 commit 749225c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/hwmon/macsmc-hwmon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static int macsmc_hwmon_read_key(struct apple_smc *smc,
124124

125125
switch (sensor->info.type_code) {
126126
/* 32-bit IEEE 754 float */
127-
case _SMC_KEY("flt "): {
127+
case __SMC_KEY('f', 'l', 't', ' '): {
128128
u32 flt_ = 0;
129129

130130
ret = apple_smc_read_f32_scaled(smc, sensor->macsmc_key, &flt_,
@@ -133,7 +133,7 @@ static int macsmc_hwmon_read_key(struct apple_smc *smc,
133133
break;
134134
}
135135
/* 48.16 fixed point decimal */
136-
case _SMC_KEY("ioft"): {
136+
case __SMC_KEY('i', 'o', 'f', 't'): {
137137
u64 ioft = 0;
138138

139139
ret = apple_smc_read_ioft_scaled(smc, sensor->macsmc_key, &ioft,

0 commit comments

Comments
 (0)