summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 22:30:12 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 07:08:35 -0700
commitd6171e4d3229fb671706edba14052897a353f262 (patch)
treeb0b37204948463ef21f5b756e26aa934dba7caef
parent06c3779625378bb1ceb27e83e0366a2bef6707a8 (diff)
downloadlinux-stable-d6171e4d3229fb671706edba14052897a353f262.tar.gz
linux-stable-d6171e4d3229fb671706edba14052897a353f262.tar.bz2
linux-stable-d6171e4d3229fb671706edba14052897a353f262.zip
hwmon: gxp-fan: 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>
-rw-r--r--drivers/hwmon/gxp-fan-ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/gxp-fan-ctrl.c b/drivers/hwmon/gxp-fan-ctrl.c
index 0014b8b0fd41..2e05bc2f627a 100644
--- a/drivers/hwmon/gxp-fan-ctrl.c
+++ b/drivers/hwmon/gxp-fan-ctrl.c
@@ -168,7 +168,7 @@ static const struct hwmon_ops gxp_fan_ctrl_ops = {
.write = gxp_fan_ctrl_write,
};
-static const struct hwmon_channel_info *gxp_fan_ctrl_info[] = {
+static const struct hwmon_channel_info * const gxp_fan_ctrl_info[] = {
HWMON_CHANNEL_INFO(fan,
HWMON_F_FAULT | HWMON_F_ENABLE,
HWMON_F_FAULT | HWMON_F_ENABLE,