diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:30:35 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 16:08:37 +0200 |
commit | a7bae59766835188917b3d1f186ecf02f5628cde (patch) | |
tree | be6b3b1cdde5b7422843016d9f7ad27100d4e7d2 /drivers/hwmon/max6621.c | |
parent | hwmon: max6620: constify pointers to hwmon_channel_info (diff) | |
download | linux-a7bae59766835188917b3d1f186ecf02f5628cde.tar.xz linux-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.c | 2 |
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, |