fpga: altera_freeze_bridge: Constify ops
Moritz Fischer
maintainerPATCH 1/1 fpga: altera_freeze_bridge: Constify ops
The ops are not changing, make them const.
Signed-off-by Moritz Fischer <[email protected]>
Cc Alan Tull <[email protected]>
--- drivers/fpga/altera-freeze-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/altera-freeze-bridge.c +1 -1
@@ -203,7 +203,7 @@ static int altera_freeze_br_enable_show(struct fpga_bridge *bridge)return priv->enable; } -static struct fpga_bridge_ops altera_freeze_br_br_ops = { +static const struct fpga_bridge_ops altera_freeze_br_br_ops = { .enable_set = altera_freeze_br_enable_set, .enable_show = altera_freeze_br_enable_show, };
Signature · 1 line
2.7.4
Quoted 3 lines · Moritz Fischer
The ops are not changing, make them const.
Signed-off-by Moritz Fischer <[email protected]>
Acked-by Alan Tull <[email protected]>
Quoted 23 lines
--- drivers/fpga/altera-freeze-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/fpga/altera-freeze-bridge.c +1
-2@@ -203,7 +203,7 @@ static int altera_freeze_br_enable_show(struct fpga_bridge *bridge)return priv->enable; } -static struct fpga_bridge_ops altera_freeze_br_br_ops = { +static const struct fpga_bridge_ops altera_freeze_br_br_ops = { .enable_set = altera_freeze_br_enable_set, .enable_show = altera_freeze_br_enable_show, }; --2.7.4