blob: 6bf5d7a414ae53c65de2500559f3670d87935dce [file] [log] [blame]
struct foo_laptop_debug {
struct dentry *root;
unsigned long size;
};
struct foo_laptop {
void *placeholder;
struct foo_laptop_debug debug;
char sdiag[64];
};
extern struct dentry *debugfs_create_dir(void);
void foo_debugfs_init(struct foo_laptop *foo) {
struct dentry *root;
root = debugfs_create_dir();
foo->debug.root = root;
foo->debug.size = __builtin_strlen(foo->sdiag);
}