summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-07 16:59:07 +0200
committerJakub Kicinski <kuba@kernel.org>2023-04-09 19:02:09 -0700
commit211f70be25773a2802470f8d1ea418b9baf14e61 (patch)
tree5fdaa98500c8bb4ccee2ada971e3e936d5a07c6b
parent234d79a5f82698fe100ec30ab8b7b8a91c17dd34 (diff)
downloadlinux-211f70be25773a2802470f8d1ea418b9baf14e61.tar.gz
linux-211f70be25773a2802470f8d1ea418b9baf14e61.tar.bz2
linux-211f70be25773a2802470f8d1ea418b9baf14e61.zip
net: phy: bcm54140: 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-4-krzysztof.kozlowski@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/phy/bcm54140.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/bcm54140.c b/drivers/net/phy/bcm54140.c
index d8f3024860dc..d43076592f81 100644
--- a/drivers/net/phy/bcm54140.c
+++ b/drivers/net/phy/bcm54140.c
@@ -364,7 +364,7 @@ static int bcm54140_hwmon_write(struct device *dev,
}
}
-static const struct hwmon_channel_info *bcm54140_hwmon_info[] = {
+static const struct hwmon_channel_info * const bcm54140_hwmon_info[] = {
HWMON_CHANNEL_INFO(temp,
HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX |
HWMON_T_ALARM),