Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: mxl: 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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230407145911.79642-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Jakub Kicinski
2ed84c0c ff0805e2

+1 -1
+1 -1
drivers/net/phy/mxl-gpy.c
··· 182 182 return 0444; 183 183 } 184 184 185 - static const struct hwmon_channel_info *gpy_hwmon_info[] = { 185 + static const struct hwmon_channel_info * const gpy_hwmon_info[] = { 186 186 HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), 187 187 NULL 188 188 };