Merge tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / include / linux / debugfs.h
index d84f8c254a87f4b7577d4d1d0cc3e91f7db3a100..da4c4983adbe950c94ab8e1538a00a1ec72cabc0 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/types.h>
 
+struct device;
 struct file_operations;
 
 struct debugfs_blob_wrapper {
@@ -99,13 +100,18 @@ struct dentry *debugfs_create_u32_array(const char *name, umode_t mode,
                                        struct dentry *parent,
                                        u32 *array, u32 elements);
 
+struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name,
+                                          struct dentry *parent,
+                                          int (*read_fn)(struct seq_file *s,
+                                                         void *data));
+
 bool debugfs_initialized(void);
 
 #else
 
 #include <linux/err.h>
 
-/* 
+/*
  * We do not return NULL from these functions if CONFIG_DEBUG_FS is not enabled
  * so users have a chance to detect if there was a real error or not.  We don't
  * want to duplicate the design decision mistakes of procfs and devfs again.
@@ -250,6 +256,15 @@ static inline struct dentry *debugfs_create_u32_array(const char *name, umode_t
        return ERR_PTR(-ENODEV);
 }
 
+static inline struct dentry *debugfs_create_devm_seqfile(struct device *dev,
+                                                        const char *name,
+                                                        struct dentry *parent,
+                                          int (*read_fn)(struct seq_file *s,
+                                                         void *data))
+{
+       return ERR_PTR(-ENODEV);
+}
+
 #endif
 
 #endif