]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeff
authorZev Weiss <zev@bewilderbeest.net>
Tue, 28 Sep 2021 09:22:38 +0000 (02:22 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:42:23 +0000 (18:42 +0100)
commit2ed2a03263d01d3a3417df5c26097c9568d9d0ad
tree2d934c2320cb2ea97220334bd94a980c2a28f5ea
parent28bf1090ee1af2440e130534be8fa00b740b162e
hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeff

BugLink: https://bugs.launchpad.net/bugs/1953387
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/hwmon/pmbus/lm25066.c