diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-05 17:04:47 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-03-07 20:26:24 -0800 |
commit | 479b4bc867b9f7792a807f32118890d97609aeab (patch) | |
tree | ae06a933ae382d9779fc5520eab21d4a5423f2dc /lib/crypto/mpi/mpi-sub-ui.c | |
parent | b72413211b485da48099b20d733d342ff51e774b (diff) |
isdn: mISDN: make elements_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the elements_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 <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions