diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-08-19 13:59:56 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-08-20 11:28:01 +0200 |
commit | 9b37f971f31354fcfd84b7c2f219138644c7edd3 (patch) | |
tree | 4b8625fa1a0cf7e8c95f3e2deb3ee0ffe393915a /drivers/pmdomain | |
parent | media: venus: use device managed APIs for power domains (diff) | |
download | linux-9b37f971f31354fcfd84b7c2f219138644c7edd3.tar.xz linux-9b37f971f31354fcfd84b7c2f219138644c7edd3.zip |
pmdomain: apple: Make apple_pmgr_reset_ops static
The sparse tool complains as follows:
drivers/pmdomain/apple/pmgr-pwrstate.c:180:32: warning:
symbol 'apple_pmgr_reset_ops' was not declared. Should it be static:
This symbol is not used outside of pmgr-pwrstate.c, so marks it static.
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240819115956.3884847-1-ruanjinjie@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/pmdomain')
-rw-r--r-- | drivers/pmdomain/apple/pmgr-pwrstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pmdomain/apple/pmgr-pwrstate.c b/drivers/pmdomain/apple/pmgr-pwrstate.c index d62a776c89a1..9467235110f4 100644 --- a/drivers/pmdomain/apple/pmgr-pwrstate.c +++ b/drivers/pmdomain/apple/pmgr-pwrstate.c @@ -177,7 +177,7 @@ static int apple_pmgr_reset_status(struct reset_controller_dev *rcdev, unsigned return !!(reg & APPLE_PMGR_RESET); } -const struct reset_control_ops apple_pmgr_reset_ops = { +static const struct reset_control_ops apple_pmgr_reset_ops = { .assert = apple_pmgr_reset_assert, .deassert = apple_pmgr_reset_deassert, .reset = apple_pmgr_reset_reset, |