Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 027a44f

Browse files
pcolberggroeck
authored andcommitted
hwmon: (intel-m10-bmc-hwmon) Fix multiplier for N6000 board power sensor
The Intel N6000 BMC outputs the board power value in milliwatt, whereas the hwmon sysfs interface must provide power values in microwatt. Fixes: e198322 ("hwmon: intel-m10-bmc-hwmon: Add N6000 sensors") Signed-off-by: Peter Colberg <peter.colberg@intel.com> Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com> Link: https://lore.kernel.org/r/20240521181246.683833-1-peter.colberg@intel.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent a94ff8e commit 027a44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/intel-m10-bmc-hwmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ static const struct m10bmc_sdata n6000bmc_curr_tbl[] = {
429429
};
430430

431431
static const struct m10bmc_sdata n6000bmc_power_tbl[] = {
432-
{ 0x724, 0x0, 0x0, 0x0, 0x0, 1, "Board Power" },
432+
{ 0x724, 0x0, 0x0, 0x0, 0x0, 1000, "Board Power" },
433433
};
434434

435435
static const struct hwmon_channel_info * const n6000bmc_hinfo[] = {

0 commit comments

Comments
 (0)