diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 22:30:28 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 16:08:37 +0200 |
commit | 38ab6d602ea1c332f06f9b22bcee5ea69deab14c (patch) | |
tree | fcf2437906f1d05301742f20220a6f0ccc8cc46b /drivers/hwmon/ltc4245.c | |
parent | hwmon: ltc2992: constify pointers to hwmon_channel_info (diff) | |
download | linux-38ab6d602ea1c332f06f9b22bcee5ea69deab14c.tar.xz linux-38ab6d602ea1c332f06f9b22bcee5ea69deab14c.zip |
hwmon: ltc4245: 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/ltc4245.c')
-rw-r--r-- | drivers/hwmon/ltc4245.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ltc4245.c b/drivers/hwmon/ltc4245.c index 57cbaf3b39fa..fb9bc8dbe99b 100644 --- a/drivers/hwmon/ltc4245.c +++ b/drivers/hwmon/ltc4245.c @@ -387,7 +387,7 @@ static umode_t ltc4245_is_visible(const void *_data, } } -static const struct hwmon_channel_info *ltc4245_info[] = { +static const struct hwmon_channel_info * const ltc4245_info[] = { HWMON_CHANNEL_INFO(in, HWMON_I_INPUT, HWMON_I_INPUT | HWMON_I_MIN_ALARM, |