projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b275c71
)
hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeff
author
Zev Weiss
<zev@bewilderbeest.net>
Tue, 28 Sep 2021 09:22:38 +0000
(
02:22
-0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:32 +0000
(19:16 +0100)
[ 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>
drivers/hwmon/pmbus/lm25066.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/pmbus/lm25066.c
b/drivers/hwmon/pmbus/lm25066.c
index 1a660c4cd19f41b407aae1c50ba25fc5f9594cdc..66d3e88b54172988d1bf57c19f38e568d1f6f99d 100644
(file)
--- a/
drivers/hwmon/pmbus/lm25066.c
+++ b/
drivers/hwmon/pmbus/lm25066.c
@@
-51,7
+51,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,