mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
clk: ast2500: 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:
@@ -534,7 +534,7 @@ static int ast2500_clk_enable(struct clk *clk)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct clk_ops ast2500_clk_ops = {
|
||||
static const struct clk_ops ast2500_clk_ops = {
|
||||
.get_rate = ast2500_clk_get_rate,
|
||||
.set_rate = ast2500_clk_set_rate,
|
||||
.enable = ast2500_clk_enable,
|
||||
|
||||
Reference in New Issue
Block a user