diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:30:20 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 07:08:36 -0700 |
commit | 2d9011813e5ff462fef0c93d6fcea5a152b702ba (patch) | |
tree | 795a6bcdbf9bf87aa44b1747fef68b27a4dd6eed /drivers/hwmon/lan966x-hwmon.c | |
parent | 55f4466382313d17fb0712e7733d75a91c380f04 (diff) |
hwmon: lan966x: constify pointers to hwmon_channel_info
Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lan966x-hwmon.c')
-rw-r--r-- | drivers/hwmon/lan966x-hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lan966x-hwmon.c b/drivers/hwmon/lan966x-hwmon.c index f41df053ac31..f8658359a098 100644 --- a/drivers/hwmon/lan966x-hwmon.c +++ b/drivers/hwmon/lan966x-hwmon.c @@ -260,7 +260,7 @@ static umode_t lan966x_hwmon_is_visible(const void *data, return mode; } -static const struct hwmon_channel_info *lan966x_hwmon_info[] = { +static const struct hwmon_channel_info * const lan966x_hwmon_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), |