Commit 027a44fe authored by Peter Colberg's avatar Peter Colberg Committed by Guenter Roeck

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: e1983220 ("hwmon: intel-m10-bmc-hwmon: Add N6000 sensors")
Signed-off-by: default avatarPeter Colberg <peter.colberg@intel.com>
Reviewed-by: default avatarMatthew Gerlach <matthew.gerlach@linux.intel.com>
Link: https://lore.kernel.org/r/20240521181246.683833-1-peter.colberg@intel.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent a94ff8e5
...@@ -429,7 +429,7 @@ static const struct m10bmc_sdata n6000bmc_curr_tbl[] = { ...@@ -429,7 +429,7 @@ static const struct m10bmc_sdata n6000bmc_curr_tbl[] = {
}; };
static const struct m10bmc_sdata n6000bmc_power_tbl[] = { static const struct m10bmc_sdata n6000bmc_power_tbl[] = {
{ 0x724, 0x0, 0x0, 0x0, 0x0, 1, "Board Power" }, { 0x724, 0x0, 0x0, 0x0, 0x0, 1000, "Board Power" },
}; };
static const struct hwmon_channel_info * const n6000bmc_hinfo[] = { static const struct hwmon_channel_info * const n6000bmc_hinfo[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment