summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-07 16:59:09 +0200
committerJakub Kicinski <kuba@kernel.org>2023-04-09 19:02:09 -0700
commit2ed84c0c6f75434091552aba91c6d53e48b95ecb (patch)
treedd5e2c7f508db70ac204a60da44de85bfeb4afd1 /drivers/net/phy
parentff0805e2bde04bbb3a11669c40ecaf418e392ed1 (diff)
downloadlinux-stable-2ed84c0c6f75434091552aba91c6d53e48b95ecb.tar.gz
linux-stable-2ed84c0c6f75434091552aba91c6d53e48b95ecb.tar.bz2
linux-stable-2ed84c0c6f75434091552aba91c6d53e48b95ecb.zip
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/mxl-gpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mxl-gpy.c b/drivers/net/phy/mxl-gpy.c
index 8e6bb97b5f85..6301a9abfb95 100644
--- a/drivers/net/phy/mxl-gpy.c
+++ b/drivers/net/phy/mxl-gpy.c
@@ -182,7 +182,7 @@ static umode_t gpy_hwmon_is_visible(const void *data,
return 0444;
}
-static const struct hwmon_channel_info *gpy_hwmon_info[] = {
+static const struct hwmon_channel_info * const gpy_hwmon_info[] = {
HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT),
NULL
};