[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1490315671-5076-2-git-send-email-atull@kernel.org>
Date: Thu, 23 Mar 2017 19:34:24 -0500
From: Alan Tull <atull@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Moritz Fischer <moritz.fischer@...us.com>,
Alan Tull <atull@...nel.org>, linux-kernel@...r.kernel.org,
linux-fpga@...r.kernel.org, Moritz Fischer <mdf@...nel.org>
Subject: [PATCH 1/8] fpga: altera_freeze_bridge: Constify ops
From: Moritz Fischer <mdf@...nel.org>
The ops are not changing, make them const.
Signed-off-by: Moritz Fischer <mdf@...nel.org>
Cc: Alan Tull <atull@...nel.org>
Cc: linux-kernel@...r.kernel.org
Cc: linux-fpga@...r.kernel.org
Acked-by: Alan Tull <atull@...nel.org>
---
drivers/fpga/altera-freeze-bridge.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/altera-freeze-bridge.c b/drivers/fpga/altera-freeze-bridge.c
index 8dcd9fb..8c1bc7e 100644
--- a/drivers/fpga/altera-freeze-bridge.c
+++ b/drivers/fpga/altera-freeze-bridge.c
@@ -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
Powered by blists - more mailing lists