diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-06 23:30:21 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-04-19 17:08:36 +0300 |
commit | 3ee2ceca3f1d65503a9d599a67d92a52a4aea5dc (patch) | |
tree | 4ac44a6f6fea96a5f1507efd19893feaddf044b0 /drivers/hwmon/lm75.c | |
parent | 2d9011813e5ff462fef0c93d6fcea5a152b702ba (diff) | |
download | linux-3ee2ceca3f1d65503a9d599a67d92a52a4aea5dc.tar.xz |
hwmon: lm75: 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/lm75.c')
-rw-r--r-- | drivers/hwmon/lm75.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index bcc3adcb3af1..dbb99ea4a0ec 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -512,7 +512,7 @@ static umode_t lm75_is_visible(const void *data, enum hwmon_sensor_types type, return 0; } -static const struct hwmon_channel_info *lm75_info[] = { +static const struct hwmon_channel_info * const lm75_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ | HWMON_C_UPDATE_INTERVAL), HWMON_CHANNEL_INFO(temp, |