@@ -7,20 +7,6 @@
#include <linux/pstore.h>
#include <linux/pstore_zone.h>
-/**
- * struct pstore_device_info - back-end pstore/blk driver structure.
- *
- * @flags: Refer to macro starting with PSTORE_FLAGS defined in
- * linux/pstore.h. It means what front-ends this device support.
- * Zero means all backends for compatible.
- * @zone: The struct pstore_zone_info details.
- *
- */
-struct pstore_device_info {
- unsigned int flags;
- struct pstore_zone_info zone;
-};
-
int register_pstore_device(struct pstore_device_info *dev);
void unregister_pstore_device(struct pstore_device_info *dev);
@@ -54,6 +54,20 @@ struct pstore_zone_info {
pstore_zone_write_op panic_write;
};
+/**
+ * struct pstore_device_info - back-end pstore device driver structure.
+ *
+ * @flags: Refer to macro starting with PSTORE_FLAGS defined in
+ * linux/pstore.h. It means what front-ends this device support.
+ * Zero means all backends for compatible.
+ * @zone: The struct pstore_zone_info details.
+ *
+ */
+struct pstore_device_info {
+ unsigned int flags;
+ struct pstore_zone_info zone;
+};
+
extern int register_pstore_zone(struct pstore_zone_info *info);
extern void unregister_pstore_zone(struct pstore_zone_info *info);
Struct pstore_device_info is used in pstore/zone, and it's not really connected to anything related to pstore/blk. To further improve on the pstore zone and allow other types of drivers to connect, it is logical to have this struct into pstore_zone.h file. Signed-off-by: Eugen Hristev <eugen.hristev@linaro.org> --- include/linux/pstore_blk.h | 14 -------------- include/linux/pstore_zone.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-)