* [PATCH] fpga: altera_freeze_bridge: Constify ops
@ 2017-03-17 20:15 Moritz Fischer
2017-03-23 18:29 ` Alan Tull
0 siblings, 1 reply; 2+ messages in thread
From: Moritz Fischer @ 2017-03-17 20:15 UTC (permalink / raw)
To: linux-fpga; +Cc: gregkh, Moritz Fischer, Alan Tull, linux-kernel
The ops are not changing, make them const.
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Cc: Alan Tull <atull@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux-fpga@vger.kernel.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fpga: altera_freeze_bridge: Constify ops
2017-03-17 20:15 [PATCH] fpga: altera_freeze_bridge: Constify ops Moritz Fischer
@ 2017-03-23 18:29 ` Alan Tull
0 siblings, 0 replies; 2+ messages in thread
From: Alan Tull @ 2017-03-23 18:29 UTC (permalink / raw)
To: Moritz Fischer; +Cc: linux-fpga, Greg Kroah-Hartman, linux-kernel
On Fri, Mar 17, 2017 at 3:15 PM, Moritz Fischer <mdf@kernel.org> wrote:
> The ops are not changing, make them const.
>
> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Acked-by: Alan Tull <atull@kernel.org>
> Cc: Alan Tull <atull@kernel.org>
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-fpga@vger.kernel.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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-23 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 20:15 [PATCH] fpga: altera_freeze_bridge: Constify ops Moritz Fischer
2017-03-23 18:29 ` Alan Tull
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.