From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:30:21 +0000 (+0200) Subject: hwmon: lm75: constify pointers to hwmon_channel_info X-Git-Tag: v6.4-rc1~151^2~73 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3ee2ceca3f1d65503a9d599a67d92a52a4aea5dc;p=linux-block.git 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 Signed-off-by: Guenter Roeck --- 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,