summaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_loader/sysfs.h
diff options
context:
space:
mode:
authorRuss Weight <russell.h.weight@intel.com>2022-04-26 13:03:56 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-29 16:49:44 +0200
commitf8ae07f4b8bfde0f33761e1a1aaee45a4e85e9d6 (patch)
treea238615559e762c67ca081de8f7f3f18ca39b7eb /drivers/base/firmware_loader/sysfs.h
parentbc187f6f8d12568413656e2e5b0d51a001e21915 (diff)
downloadlinux-f8ae07f4b8bfde0f33761e1a1aaee45a4e85e9d6.tar.bz2
firmware_loader: Move definitions from sysfs_upload.h to sysfs.h
Move definitions required by sysfs.c from sysfs_upload.h to sysfs.h so that sysfs.c does not need to include sysfs_upload.h. Signed-off-by: Russ Weight <russell.h.weight@intel.com> Link: https://lore.kernel.org/r/20220426200356.126085-3-russell.h.weight@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_loader/sysfs.h')
-rw-r--r--drivers/base/firmware_loader/sysfs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/base/firmware_loader/sysfs.h b/drivers/base/firmware_loader/sysfs.h
index e6c487937817..5d8ff1675c79 100644
--- a/drivers/base/firmware_loader/sysfs.h
+++ b/drivers/base/firmware_loader/sysfs.h
@@ -99,4 +99,19 @@ struct fw_sysfs *
fw_create_instance(struct firmware *firmware, const char *fw_name,
struct device *device, u32 opt_flags);
+#ifdef CONFIG_FW_UPLOAD
+extern struct device_attribute dev_attr_status;
+extern struct device_attribute dev_attr_error;
+extern struct device_attribute dev_attr_cancel;
+extern struct device_attribute dev_attr_remaining_size;
+
+int fw_upload_start(struct fw_sysfs *fw_sysfs);
+umode_t fw_upload_is_visible(struct kobject *kobj, struct attribute *attr, int n);
+#else
+static inline int fw_upload_start(struct fw_sysfs *fw_sysfs)
+{
+ return 0;
+}
+#endif
+
#endif /* __FIRMWARE_SYSFS_H */