mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
pinctrl: armada-38x: 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> Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
This commit is contained in:
committed by
Stefan Roese
parent
9b432691dc
commit
dd1084ed2e
@@ -550,7 +550,7 @@ static int armada_38x_pinctrl_probe(struct udevice *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct pinctrl_ops armada_37xx_pinctrl_ops = {
|
||||
static const struct pinctrl_ops armada_37xx_pinctrl_ops = {
|
||||
.get_pins_count = armada_38x_pinctrl_get_pins_count,
|
||||
.get_pin_name = armada_38x_pinctrl_get_pin_name,
|
||||
.get_functions_count = armada_38x_pinctrl_get_functions_count,
|
||||
|
||||
Reference in New Issue
Block a user