aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/firmware_loader/sysfs_upload.h
diff options
context:
space:
mode:
authorRuss Weight <[email protected]>2022-04-26 13:03:56 -0700
committerGreg Kroah-Hartman <[email protected]>2022-04-29 16:49:44 +0200
commitf8ae07f4b8bfde0f33761e1a1aaee45a4e85e9d6 (patch)
treea238615559e762c67ca081de8f7f3f18ca39b7eb /drivers/base/firmware_loader/sysfs_upload.h
parentbc187f6f8d12568413656e2e5b0d51a001e21915 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/base/firmware_loader/sysfs_upload.h')
-rw-r--r--drivers/base/firmware_loader/sysfs_upload.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/drivers/base/firmware_loader/sysfs_upload.h b/drivers/base/firmware_loader/sysfs_upload.h
index 9edd47d3f36a..31931ff7808a 100644
--- a/drivers/base/firmware_loader/sysfs_upload.h
+++ b/drivers/base/firmware_loader/sysfs_upload.h
@@ -1,9 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __FIRMWARE_UPLOAD_H
-#define __FIRMWARE_UPLOAD_H
+#ifndef __SYSFS_UPLOAD_H
+#define __SYSFS_UPLOAD_H
#include <linux/device.h>
+#include "sysfs.h"
+
/**
* enum fw_upload_prog - firmware upload progress codes
* @FW_UPLOAD_PROG_IDLE: there is no firmware upload in progress
@@ -36,19 +38,4 @@ struct fw_upload_priv {
enum fw_upload_err err_code; /* security manager error code */
};
-#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_UPLOAD_H */
+#endif /* __SYSFS_UPLOAD_H */