浏览代码

fpga: make xlnx_pr_decoupler_br_ops const

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>
Bhumika Goyal 7 年之前
父节点
当前提交
d8d9d93646
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/fpga/xilinx-pr-decoupler.c

+ 1 - 1
drivers/fpga/xilinx-pr-decoupler.c

@@ -79,7 +79,7 @@ static int xlnx_pr_decoupler_enable_show(struct fpga_bridge *bridge)
 	return !status;
 	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_set = xlnx_pr_decoupler_enable_set,
 	.enable_show = xlnx_pr_decoupler_enable_show,
 	.enable_show = xlnx_pr_decoupler_enable_show,
 };
 };