summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max6621.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 22:30:35 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 07:08:37 -0700
commita7bae59766835188917b3d1f186ecf02f5628cde (patch)
treebe6b3b1cdde5b7422843016d9f7ad27100d4e7d2 /drivers/hwmon/max6621.c
parentb3fcd02c608184e1ab42710d4bc58b4c15fbf873 (diff)
downloadlinux-stable-a7bae59766835188917b3d1f186ecf02f5628cde.tar.gz
linux-stable-a7bae59766835188917b3d1f186ecf02f5628cde.tar.bz2
linux-stable-a7bae59766835188917b3d1f186ecf02f5628cde.zip
hwmon: max6621: 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/max6621.c')
-rw-r--r--drivers/hwmon/max6621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max6621.c b/drivers/hwmon/max6621.c
index 7821132e17fa..0656eb1e7959 100644
--- a/drivers/hwmon/max6621.c
+++ b/drivers/hwmon/max6621.c
@@ -449,7 +449,7 @@ static const struct regmap_config max6621_regmap_config = {
.num_reg_defaults = ARRAY_SIZE(max6621_regmap_default),
};
-static const struct hwmon_channel_info *max6621_info[] = {
+static const struct hwmon_channel_info * const max6621_info[] = {
HWMON_CHANNEL_INFO(chip,
HWMON_C_REGISTER_TZ),
HWMON_CHANNEL_INFO(temp,