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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:32 +0000 (19:16 +0100)
commitdd0fe5985b0ab05173f5b4c02b164722482f9903
tree7d07b41363ae4883edce182e1c0a0f6459316219
parentb275c71a7b70e7100e236b90adc76edda7e9f374
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>
drivers/hwmon/pmbus/lm25066.c