staging: greybus: fw-management: make fw_mgmt_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 13:58:36 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 13:39:09 +0000 (15:39 +0200)
commit388fd6a87f7fc41d75720bd8d0b84bd3f2f49f7a
tree5b3c18fab4fea46ad247b51a37cc0270a45fd932
parentf7704755723813e1be87518899282c9801e9fd3a
staging: greybus: fw-management: make fw_mgmt_class constant

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

Cc: Alex Elder <elder@kernel.org>
Cc: greybus-dev@lists.linaro.org
Reviewed-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/2023100534-catty-moodiness-099e@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/fw-management.c