diff options
author | Florian Breska <florian.breska@intel.com> | 2021-12-07 14:25:10 +0300 |
---|---|---|
committer | Breska, Florian <florian.breska@intel.com> | 2021-12-08 19:22:06 +0300 |
commit | 84aa23e40d0b29136da397e7f253a9d2ce87255e (patch) | |
tree | 1117cdac18e30dcf2e970bf15e476745494bc94c /drivers | |
parent | 85107b5aa1f6ec421af60fbcf91ee6db427d5a16 (diff) | |
download | linux-84aa23e40d0b29136da397e7f253a9d2ce87255e.tar.xz |
hwmon: peci-dimmpower: fix incorrect sensor count
This commit fixes a mistake in define about a number of energy
sensors in this submodule. The correct number is 1, not 4.
Change-Id: Ie8a28cd4d1ea86757f0e0a659317426fed7a2dd0
Signed-off-by: Florian Breska <florian.breska@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/peci-dimmpower.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/peci-dimmpower.c b/drivers/hwmon/peci-dimmpower.c index d98fbc38de48..78a1570b6650 100644 --- a/drivers/hwmon/peci-dimmpower.c +++ b/drivers/hwmon/peci-dimmpower.c @@ -19,7 +19,7 @@ enum PECI_DIMMPOWER_SENSOR_TYPES { #define PECI_DIMMPOWER_ENERGY_CHANNEL_COUNT 1 /* Supported channels number */ #define PECI_DIMMPOWER_POWER_SENSOR_COUNT 4 /* Supported sensors/readings number */ -#define PECI_DIMMPOWER_ENERGY_SENSOR_COUNT 4 /* Supported sensors/readings number */ +#define PECI_DIMMPOWER_ENERGY_SENSOR_COUNT 1 /* Supported sensors/readings number */ struct peci_dimmpower { struct device *dev; |