diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:30:27 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 16:08:36 +0200 |
commit | 8cbafa6efece730bfb6f11829ec64c80437fbc96 (patch) | |
tree | 7b4a0f83d2b7b8b5e3427ee1182ccc9483ea773b /drivers/hwmon/ltc2992.c | |
parent | hwmon: ltc2947: constify pointers to hwmon_channel_info (diff) | |
download | linux-8cbafa6efece730bfb6f11829ec64c80437fbc96.tar.xz linux-8cbafa6efece730bfb6f11829ec64c80437fbc96.zip |
hwmon: ltc2992: 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/ltc2992.c')
-rw-r--r-- | drivers/hwmon/ltc2992.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ltc2992.c b/drivers/hwmon/ltc2992.c index 69341de397cb..429a7f5837f0 100644 --- a/drivers/hwmon/ltc2992.c +++ b/drivers/hwmon/ltc2992.c @@ -812,7 +812,7 @@ static const struct hwmon_ops ltc2992_hwmon_ops = { .write = ltc2992_write, }; -static const struct hwmon_channel_info *ltc2992_info[] = { +static const struct hwmon_channel_info * const ltc2992_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_IN_RESET_HISTORY), HWMON_CHANNEL_INFO(in, |