summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2021-09-28 02:22:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-26 11:36:09 +0100
commitf7ab93180ff88ca4630a4d96a2908b378bbe6ef9 (patch)
treec0324b21ee53089f147a6fdb4ea53e29cdee9d57 /drivers/hwmon
parentb43da4121715fac042de0733ffa97dbfab198069 (diff)
downloadlinux-stable-f7ab93180ff88ca4630a4d96a2908b378bbe6ef9.tar.gz
linux-stable-f7ab93180ff88ca4630a4d96a2908b378bbe6ef9.tar.bz2
linux-stable-f7ab93180ff88ca4630a4d96a2908b378bbe6ef9.zip
hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeff
[ Upstream commit b7931a7b0e0df4d2a25fedd895ad32c746b77bc1 ] Maintaining this manually is error prone (there are currently only five chips supported, not six); gcc can do it for us automatically. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Fixes: 666c14906b49 ("hwmon: (pmbus/lm25066) Drop support for LM25063") Link: https://lore.kernel.org/r/20210928092242.30036-5-zev@bewilderbeest.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/pmbus/lm25066.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c
index 6eafcbb75dcd..e25b80149086 100644
--- a/drivers/hwmon/pmbus/lm25066.c
+++ b/drivers/hwmon/pmbus/lm25066.c
@@ -60,7 +60,7 @@ struct __coeff {
#define PSC_CURRENT_IN_L (PSC_NUM_CLASSES)
#define PSC_POWER_L (PSC_NUM_CLASSES + 1)
-static struct __coeff lm25066_coeff[6][PSC_NUM_CLASSES + 2] = {
+static struct __coeff lm25066_coeff[][PSC_NUM_CLASSES + 2] = {
[lm25056] = {
[PSC_VOLTAGE_IN] = {
.m = 16296,