Skip to content

Commit 9b37f97

Browse files
Jinjie Ruanstorulf
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 3b01940 commit 9b37f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pmdomain/apple/pmgr-pwrstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int apple_pmgr_reset_status(struct reset_controller_dev *rcdev, unsigned
177177
return !!(reg & APPLE_PMGR_RESET);
178178
}
179179

180-
const struct reset_control_ops apple_pmgr_reset_ops = {
180+
static const struct reset_control_ops apple_pmgr_reset_ops = {
181181
.assert = apple_pmgr_reset_assert,
182182
.deassert = apple_pmgr_reset_deassert,
183183
.reset = apple_pmgr_reset_reset,

0 commit comments

Comments
 (0)