summaryrefslogtreecommitdiff
path: root/drivers/hwmon/pmbus
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2023-11-17 02:57:45 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-12-11 17:20:54 +0300
commit2792fc8f8c834e035b09be42d445085bd8bcac7e (patch)
tree60c7bd8dc90f046e3899dbe19f715f2a4432bf86 /drivers/hwmon/pmbus
parentefe86092ab316db8d3c6e98f57b193511a09a073 (diff)
downloadlinux-2792fc8f8c834e035b09be42d445085bd8bcac7e.tar.xz
hwmon: (nct6775-core) Explicitly initialize nct6775_device_names indexes
Changing the "kinds" enum start value to be 1-indexed instead of 0-indexed caused look-ups in nct6775_device_names[] to be misaligned or off the end. Initialize the string list with explicit indexes. Cc: Rob Herring <robh@kernel.org> Cc: Kees Cook <keescook@chromium.org> Fixes: 10a0575ea09d ("hwmon: nct6775-i2c: Use i2c_get_match_data()") Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus')
0 files changed, 0 insertions, 0 deletions