diff options
author | Mark Pearson <markpearson@lenovo.com> | 2021-05-31 01:31:09 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-06-16 18:47:51 +0300 |
commit | 17b707fe5fbd3c019691873c1c11bddb0e0f7225 (patch) | |
tree | f3a84c8296fc4c32e5c8cdf6b2e9978f086c353c /drivers/platform/x86/firmware_attributes_class.h | |
parent | 6cbaee2e109ed0f7327a2d3cbb412f36fd8873e0 (diff) | |
download | linux-17b707fe5fbd3c019691873c1c11bddb0e0f7225.tar.xz |
platform/x86: firmware_attributes_class: Create helper file for handling firmware-attributes class registration events
This offers shared code for registering the firmware_attributes_class,
which is used by the Dell and Lenovo WMI management drivers.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20210530223111.25929-1-markpearson@lenovo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/firmware_attributes_class.h')
-rw-r--r-- | drivers/platform/x86/firmware_attributes_class.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/platform/x86/firmware_attributes_class.h b/drivers/platform/x86/firmware_attributes_class.h new file mode 100644 index 000000000000..486485cb1f54 --- /dev/null +++ b/drivers/platform/x86/firmware_attributes_class.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +/* Firmware attributes class helper module */ + +#ifndef FW_ATTR_CLASS_H +#define FW_ATTR_CLASS_H + +int fw_attributes_class_get(struct class **fw_attr_class); +int fw_attributes_class_put(void); + +#endif /* FW_ATTR_CLASS_H */ |