From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:35:27 +0000 (+0200) Subject: hwmon: npcm750-pwm: constify pointers to hwmon_channel_info X-Git-Tag: v6.4-rc1~151^2~53 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ed30302c3bccc1be2c3b3205c37b3f3a0da55138;p=linux-block.git hwmon: npcm750-pwm: 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/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c index 11a28609da3c..10ed3f4335d4 100644 --- a/drivers/hwmon/npcm750-pwm-fan.c +++ b/drivers/hwmon/npcm750-pwm-fan.c @@ -629,7 +629,7 @@ static umode_t npcm7xx_is_visible(const void *data, } } -static const struct hwmon_channel_info *npcm7xx_info[] = { +static const struct hwmon_channel_info * const npcm7xx_info[] = { HWMON_CHANNEL_INFO(pwm, HWMON_PWM_INPUT, HWMON_PWM_INPUT,