mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
reset: mediatek: 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 <marek.vasut+renesas@mailbox.org>
This commit is contained in:
@@ -47,7 +47,7 @@ static int mediatek_reset_deassert(struct reset_ctl *reset_ctl)
|
||||
priv->regofs + ((id / 32) << 2), BIT(id % 32), 0);
|
||||
}
|
||||
|
||||
struct reset_ops mediatek_reset_ops = {
|
||||
static const struct reset_ops mediatek_reset_ops = {
|
||||
.rst_assert = mediatek_reset_assert,
|
||||
.rst_deassert = mediatek_reset_deassert,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user