From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:35:30 +0000 (+0200) Subject: hwmon: oxp-sensors: constify pointers to hwmon_channel_info X-Git-Tag: v6.6.7~3018^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=195030d34ee9a77e851b23b9d5f174860e21a982;p=platform%2Fkernel%2Flinux-starfive.git hwmon: oxp-sensors: 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/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c index 36872b5..ae67207 100644 --- a/drivers/hwmon/oxp-sensors.c +++ b/drivers/hwmon/oxp-sensors.c @@ -239,7 +239,7 @@ static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type, } /* Known sensors in the OXP EC controllers */ -static const struct hwmon_channel_info *oxp_platform_sensors[] = { +static const struct hwmon_channel_info * const oxp_platform_sensors[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), HWMON_CHANNEL_INFO(pwm,