• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 
3 /* Firmware attributes class helper module */
4 
5 #include <linux/module.h>
6 #include "firmware_attributes_class.h"
7 
8 const struct class firmware_attributes_class = {
9 	.name = "firmware-attributes",
10 };
11 EXPORT_SYMBOL_GPL(firmware_attributes_class);
12 
fw_attributes_class_init(void)13 static __init int fw_attributes_class_init(void)
14 {
15 	return class_register(&firmware_attributes_class);
16 }
17 module_init(fw_attributes_class_init);
18 
fw_attributes_class_exit(void)19 static __exit void fw_attributes_class_exit(void)
20 {
21 	class_unregister(&firmware_attributes_class);
22 }
23 module_exit(fw_attributes_class_exit);
24 
fw_attributes_class_get(const struct class ** fw_attr_class)25 int fw_attributes_class_get(const struct class **fw_attr_class)
26 {
27 	*fw_attr_class = &firmware_attributes_class;
28 	return 0;
29 }
30 EXPORT_SYMBOL_GPL(fw_attributes_class_get);
31 
fw_attributes_class_put(void)32 int fw_attributes_class_put(void)
33 {
34 	return 0;
35 }
36 EXPORT_SYMBOL_GPL(fw_attributes_class_put);
37 
38 MODULE_AUTHOR("Mark Pearson <markpearson@lenovo.com>");
39 MODULE_DESCRIPTION("Firmware attributes class helper module");
40 MODULE_LICENSE("GPL");
41