tee: make tee_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 14:00:14 +0000 (16:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2023 08:01:34 +0000 (10:01 +0200)
commit066eaa69b05b92efd25bc2fe9964d68122c6aa2b
treefb8c916afccf6f3fb200168a91b11b37cd96f607
parent35479e2e490992e5bc976d1394f1e1274903af15
tee: make tee_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: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lore.kernel.org/r/2023100613-lustiness-affiliate-7dcb@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tee/tee_core.c