diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:29:58 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 16:08:34 +0200 |
commit | 013adc9852a1352007722c3e42986cb6e03a99be (patch) | |
tree | 0141b35043f78b32d77f5e1e6ca369af1c102df6 /drivers/hwmon/adm9240.c | |
parent | hwmon: adm1177: constify pointers to hwmon_channel_info (diff) | |
download | linux-013adc9852a1352007722c3e42986cb6e03a99be.tar.xz linux-013adc9852a1352007722c3e42986cb6e03a99be.zip |
hwmon: adm9240: 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/adm9240.c')
-rw-r--r-- | drivers/hwmon/adm9240.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adm9240.c b/drivers/hwmon/adm9240.c index 40e3558d3709..9eb973a38e4b 100644 --- a/drivers/hwmon/adm9240.c +++ b/drivers/hwmon/adm9240.c @@ -731,7 +731,7 @@ static const struct hwmon_ops adm9240_hwmon_ops = { .write = adm9240_write, }; -static const struct hwmon_channel_info *adm9240_info[] = { +static const struct hwmon_channel_info * const adm9240_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_ALARMS), HWMON_CHANNEL_INFO(intrusion, HWMON_INTRUSION_ALARM), HWMON_CHANNEL_INFO(temp, |