USB: gadget: f_hid: make hidg_class a static const structure

Now that the driver core allows for struct class to be in read-only memory, move the hidg_class structure to be declared at build time placing it into read-only memory, instead of having to be dynamically allocated at load time. Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com> Link: https://lore.kernel.org/r/20230620094412.508580-11-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


Author Ivan Orlov Committer Greg Kroah-Hartman Date Commit Parent 2c10e7a0
+10 -11
1 changed file
+10 -11
1 changed file