fpga: bridge: make fpga_bridge_class a static const structure
authorIvan Orlov <ivan.orlov0322@gmail.com>
Fri, 11 Aug 2023 07:30:41 +0000 (11:30 +0400)
committerXu Yilun <yilun.xu@intel.com>
Fri, 11 Aug 2023 15:03:37 +0000 (23:03 +0800)
commit7bb2d2190d43264eea34d71de7627117db79f9c1
tree317a0d64af1a760bedf34764f6fc057ca32c9ffe
parent8607d9c1bd57da0a2d5f8ab2ec32b6ef7d85e66a
fpga: bridge: make fpga_bridge_class a static const structure

Now that the driver core allows for struct class to be in read-only
memory, move the fpga_bridge_class structure to be declared at build
time placing it into read-only memory, instead of having to be
dynamically allocated at boot time.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20230811073043.52808-1-ivan.orlov0322@gmail.com
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
drivers/fpga/fpga-bridge.c