From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:40:19 +0000 (+0200) Subject: hwmon: sy7636a: constify pointers to hwmon_channel_info X-Git-Tag: v6.6.7~3018^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b5d8ae01954350f47b9d601ebfc7f96563c3496;p=platform%2Fkernel%2Flinux-starfive.git hwmon: sy7636a: 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/sy7636a-hwmon.c b/drivers/hwmon/sy7636a-hwmon.c index 6dd9c2a..ed11088 100644 --- a/drivers/hwmon/sy7636a-hwmon.c +++ b/drivers/hwmon/sy7636a-hwmon.c @@ -52,7 +52,7 @@ static const struct hwmon_ops sy7636a_hwmon_ops = { .read = sy7636a_read, }; -static const struct hwmon_channel_info *sy7636a_info[] = { +static const struct hwmon_channel_info * const sy7636a_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), NULL