diff options
| author | Marek Vasut <[email protected]> | 2026-05-09 17:12:33 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-18 16:56:07 -0600 |
| commit | ce830106bf3b2d830e971ff622663a9c7516380b (patch) | |
| tree | ea758d2b814ad78da0ab4c18067537bdf152fa33 | |
| parent | 2a7e739c040bbeb34c39fb38d159609079109f51 (diff) | |
reset: sunxi: Staticize and constify driver ops
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.
Signed-off-by: Marek Vasut <[email protected]>
| -rw-r--r-- | drivers/reset/reset-sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index fd47e1f9e37..6195edd5b2f 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -67,7 +67,7 @@ static int sunxi_reset_deassert(struct reset_ctl *reset_ctl) return sunxi_set_reset(reset_ctl, true); } -struct reset_ops sunxi_reset_ops = { +static const struct reset_ops sunxi_reset_ops = { .request = sunxi_reset_request, .rst_assert = sunxi_reset_assert, .rst_deassert = sunxi_reset_deassert, |
