]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
phy: apple: atc: Make atcphy_dwc3_reset_ops variable static
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 11:04:14 +0000 (12:04 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 27 Feb 2026 14:33:38 +0000 (20:03 +0530)
File-scope 'atcphy_dwc3_reset_ops' is not used outside of this unit, so
make it static to silence sparse warning:

  atc.c:2026:32: warning: symbol 'atcphy_dwc3_reset_ops' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Janne Grunau <j@jannau.net>
Link: https://patch.msgid.link/20260216110413.159994-4-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/apple/atc.c

index dc867f368b68748ea953e594ad998d7f965d8d1d..32d97226e9264ee157f015a68869cfb0a369f7bb 100644 (file)
@@ -2023,7 +2023,7 @@ static int atcphy_dwc3_reset_deassert(struct reset_controller_dev *rcdev, unsign
        return 0;
 }
 
-const struct reset_control_ops atcphy_dwc3_reset_ops = {
+static const struct reset_control_ops atcphy_dwc3_reset_ops = {
        .assert = atcphy_dwc3_reset_assert,
        .deassert = atcphy_dwc3_reset_deassert,
 };