diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-05 15:18:51 -0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-04-06 11:53:32 +0530 |
commit | db704bf6dccc8fef77ee4a8326bf2013b828205b (patch) | |
tree | c9069bc47ebd2d020408b9a3c0423a914fccf1e5 /rust/helpers/workqueue.c | |
parent | 5cee04a8369049b92d52995e320abff18dfeda44 (diff) |
phy: core: make phy_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 phy_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240305-class_cleanup-phy-v1-1-106013a644dc@marliere.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions