Skip to content

Commit 0ec1e17

Browse files
committed
fixup! hwmon: add macsmc-hwmon driver
hwmon: macsmc: Avoid warning on 32-bit compile test builds Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 86c41b6 commit 0ec1e17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/macsmc-hwmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static int macsmc_hwmon_read_key(struct apple_smc *smc,
135135

136136
ret = apple_smc_read_ioft_scaled(smc, sensor->macsmc_key, &ioft,
137137
scale);
138-
*val = ioft;
138+
*val = (long)ioft;
139139
break;
140140
}
141141
default:

0 commit comments

Comments
 (0)