summaryrefslogtreecommitdiff
path: root/drivers/hwmon/nct7904.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 22:35:26 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 07:08:37 -0700
commit2a06edbe33b21a7c6851f5d4f81f73e1407af040 (patch)
treebc2f88e1b4be419829e87e8d86b7196fff7b3a70 /drivers/hwmon/nct7904.c
parentbb54a54b5c660053e96032209c5f75c72070b676 (diff)
downloadlwn-2a06edbe33b21a7c6851f5d4f81f73e1407af040.tar.gz
lwn-2a06edbe33b21a7c6851f5d4f81f73e1407af040.zip
hwmon: nct7904: 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/nct7904.c')
-rw-r--r--drivers/hwmon/nct7904.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c
index ecc5db0011a3..007bae4c7028 100644
--- a/drivers/hwmon/nct7904.c
+++ b/drivers/hwmon/nct7904.c
@@ -803,7 +803,7 @@ static int nct7904_detect(struct i2c_client *client,
return 0;
}
-static const struct hwmon_channel_info *nct7904_info[] = {
+static const struct hwmon_channel_info * const nct7904_info[] = {
HWMON_CHANNEL_INFO(in,
/* dummy, skipped in is_visible */
HWMON_I_INPUT | HWMON_I_MIN | HWMON_I_MAX |