From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:30:09 +0000 (+0200) Subject: hwmon: drivetemp: constify pointers to hwmon_channel_info X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b9adb6b6654486cebdf3b96bf2330d6958c9c326;p=linux.git hwmon: drivetemp: 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/drivetemp.c b/drivers/hwmon/drivetemp.c index 8e5759b423902..e73b7bfc6af35 100644 --- a/drivers/hwmon/drivetemp.c +++ b/drivers/hwmon/drivetemp.c @@ -526,7 +526,7 @@ static umode_t drivetemp_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *drivetemp_info[] = { +static const struct hwmon_channel_info * const drivetemp_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT |