From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:30:15 +0000 (+0200) Subject: hwmon: ina3221: constify pointers to hwmon_channel_info X-Git-Tag: v6.6.17~5037^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=324399753854b8aaa6a621902a33e77f4425e7cf;p=platform%2Fkernel%2Flinux-rpi.git hwmon: ina3221: 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/ina3221.c b/drivers/hwmon/ina3221.c index f3a4c56..2735e37 100644 --- a/drivers/hwmon/ina3221.c +++ b/drivers/hwmon/ina3221.c @@ -650,7 +650,7 @@ static umode_t ina3221_is_visible(const void *drvdata, HWMON_C_CRIT | HWMON_C_CRIT_ALARM | \ HWMON_C_MAX | HWMON_C_MAX_ALARM) -static const struct hwmon_channel_info *ina3221_info[] = { +static const struct hwmon_channel_info * const ina3221_info[] = { HWMON_CHANNEL_INFO(chip, HWMON_C_SAMPLES, HWMON_C_UPDATE_INTERVAL),