summaryrefslogtreecommitdiff
path: root/drivers/hwmon/nzxt-smart2.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 23:35:29 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 17:08:37 +0300
commit98ce1fc134ef4450c798a9e198261b6d0b9b7cb2 (patch)
tree77f992bb5465a0587c63c836b5b2bdc2f4da150e /drivers/hwmon/nzxt-smart2.c
parent9add51f2bc65340e5a42efa8f7312fbd9d13ee61 (diff)
downloadlinux-98ce1fc134ef4450c798a9e198261b6d0b9b7cb2.tar.xz
hwmon: nzxt: 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/nzxt-smart2.c')
-rw-r--r--drivers/hwmon/nzxt-smart2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nzxt-smart2.c b/drivers/hwmon/nzxt-smart2.c
index e5edf8071f39..7aa586eb74be 100644
--- a/drivers/hwmon/nzxt-smart2.c
+++ b/drivers/hwmon/nzxt-smart2.c
@@ -663,7 +663,7 @@ static const struct hwmon_ops nzxt_smart2_hwmon_ops = {
.write = nzxt_smart2_hwmon_write,
};
-static const struct hwmon_channel_info *nzxt_smart2_channel_info[] = {
+static const struct hwmon_channel_info * const nzxt_smart2_channel_info[] = {
HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT | HWMON_F_LABEL,
HWMON_F_INPUT | HWMON_F_LABEL,
HWMON_F_INPUT | HWMON_F_LABEL),