fpga: make xlnx_pr_decoupler_br_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 21 Sep 2017 14:52:41 +0000 (09:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Oct 2017 08:36:40 +0000 (10:36 +0200)
Make this const as it is only passed to a const argument of the function
fpga_bridge_register.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/xilinx-pr-decoupler.c

index e359930..0d77430 100644 (file)
@@ -79,7 +79,7 @@ static int xlnx_pr_decoupler_enable_show(struct fpga_bridge *bridge)
        return !status;
 }
 
-static struct fpga_bridge_ops xlnx_pr_decoupler_br_ops = {
+static const struct fpga_bridge_ops xlnx_pr_decoupler_br_ops = {
        .enable_set = xlnx_pr_decoupler_enable_set,
        .enable_show = xlnx_pr_decoupler_enable_show,
 };