]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
regulator: pf0900: Make regu_irqs variable static const
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 08:58:05 +0000 (09:58 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 22 Feb 2026 23:53:49 +0000 (23:53 +0000)
File-scope 'regu_irqs' is not used outside of this unit and is not
modified anywhere, so make it static const to silence sparse warning:

  pf0900-regulator.c:774:29: warning: symbol 'regu_irqs' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260216085804.69102-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pf0900-regulator.c

index b5effee3291724f95ba4c820f6518ee25d8a57e2..5c44d2dbcab4d611ed4100b1fa483793f738d4d7 100644 (file)
@@ -771,7 +771,7 @@ static const struct pf0900_regulator_desc pf0900_regulators[] = {
        },
 };
 
-struct pf0900_regulator_irq regu_irqs[] = {
+static const struct pf0900_regulator_irq regu_irqs[] = {
        PF0900_REGU_IRQ(PF0900_REG_SW_ILIM_INT, PF0900_SW, REGULATOR_ERROR_OVER_CURRENT_WARN),
        PF0900_REGU_IRQ(PF0900_REG_LDO_ILIM_INT, PF0900_LDO, REGULATOR_ERROR_OVER_CURRENT_WARN),
        PF0900_REGU_IRQ(PF0900_REG_SW_UV_INT, PF0900_SW, REGULATOR_ERROR_UNDER_VOLTAGE_WARN),