summaryrefslogtreecommitdiff
path: root/drivers/hwmon/gxp-fan-ctrl.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 23:30:12 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 17:08:35 +0300
commitd6171e4d3229fb671706edba14052897a353f262 (patch)
treeb0b37204948463ef21f5b756e26aa934dba7caef /drivers/hwmon/gxp-fan-ctrl.c
parent06c3779625378bb1ceb27e83e0366a2bef6707a8 (diff)
downloadlinux-d6171e4d3229fb671706edba14052897a353f262.tar.xz
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>
Diffstat (limited to 'drivers/hwmon/gxp-fan-ctrl.c')
-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,