power: reset: pwr-mlxbf: change rst_pwr_hid and low_pwr_hid from global to local...
authorTom Rix <trix@redhat.com>
Wed, 29 Jun 2022 19:20:45 +0000 (15:20 -0400)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 29 Jun 2022 19:41:59 +0000 (21:41 +0200)
commita578cc3af5cea5c7a912d2cfb8601875eb8ce451
tree25c4695eac9b478def5ff363cb717d931f2dff08
parenta5a3d94fc4edecb894bc79810aea511ff9261c09
power: reset: pwr-mlxbf: change rst_pwr_hid and low_pwr_hid from global to local variables

sparse reports
drivers/power/reset/pwr-mlxbf.c:19:12: warning: symbol 'rst_pwr_hid' was not declared. Should it be static?
drivers/power/reset/pwr-mlxbf.c:20:12: warning: symbol 'low_pwr_hid' was not declared. Should it be static?

Both rst_pwr_hid and low_pwr_hid are only used in a single function
so they should be local variables.

Fixes: a4c0094fcf76 ("power: reset: pwr-mlxbf: add BlueField SoC power control driver")
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/pwr-mlxbf.c