diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 23:38:17 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 17:08:38 +0300 |
commit | 1ff3d23d00184dc350394e3ca53fdce87daa1bc1 (patch) | |
tree | e6a043873ce365f05b7a2f0e706131ae792838b2 /drivers/hwmon/sch5627.c | |
parent | eeda3a44532371bf72ef80d163326ca1c65a5bda (diff) | |
download | linux-1ff3d23d00184dc350394e3ca53fdce87daa1bc1.tar.xz |
hwmon: sch5627: 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/sch5627.c')
-rw-r--r-- | drivers/hwmon/sch5627.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/sch5627.c b/drivers/hwmon/sch5627.c index 25fbbd4c9a2b..1bbda3b05532 100644 --- a/drivers/hwmon/sch5627.c +++ b/drivers/hwmon/sch5627.c @@ -379,7 +379,7 @@ static const struct hwmon_ops sch5627_ops = { .write = sch5627_write, }; -static const struct hwmon_channel_info *sch5627_info[] = { +static const struct hwmon_channel_info * const sch5627_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_FAULT, |