Skip to contentSkip to conversation

fpga: altera_freeze_bridge: Constify ops

PATCH In review Moritz Fischer 2 participants 2 messages Mar 17, 2017 – Mar 23, 2017 FPGA manager framework

lore
Share & tools
lore

Moritz Fischer

author maintainer
#0 lore raw

PATCH 1/1 fpga: altera_freeze_bridge: Constify ops

The ops are not changing, make them const.

---
 drivers/fpga/altera-freeze-bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/altera-freeze-bridge.c +1 -1
index 8dcd9fb..8c1bc7e 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Moritz Fischer

The ops are not changing, make them const.

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
index 8dcd9fb..8c1bc7e 100644
@@ -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