spi: spidev: make spidev_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 13:58:40 +0000 (15:58 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 6 Oct 2023 14:44:47 +0000 (15:44 +0100)
commitdf22568ad8ed317db95acc11e1c08bae7a0fba5d
treeadd287aa6dc3c875ed7ba9299797f116ca3f8354
parent881fe6ed21e8c7e60095aabc274c4f2bfdc87c5e
spi: spidev: make spidev_class 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.

Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/2023100639-celtic-herbs-66be@gregkh
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c