PCI: endpoint: Make pci_epc_class struct constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2024 08:20:12 +0000 (10:20 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Thu, 4 Jul 2024 14:40:53 +0000 (14:40 +0000)
commit03377a698926e829321fcd42789892cb5974b6b6
tree241378889d73dacab0bb7f0cd3dda1017968b1e7
parent473b2cf9c4d1711146da1d8574c61e92c6672892
PCI: endpoint: Make pci_epc_class struct constant

Now that the driver core allows for struct class to be in read-only
memory, we should make all 'class' structures declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at runtime.

Link: https://lore.kernel.org/linux-pci/2024061011-citable-herbicide-1095@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/endpoint/pci-epc-core.c