Merge tag 'drm-msm-fixes-2024-02-15' of https://gitlab.freedesktop.org/drm/msm into...
[linux-block.git] / drivers / greybus / debugfs.c
CommitLineData
eb50fd3a 1// SPDX-License-Identifier: GPL-2.0
27fb8310
GKH
2/*
3 * Greybus debugfs code
4 *
5 * Copyright 2014 Google Inc.
a46e9671 6 * Copyright 2014 Linaro Ltd.
27fb8310
GKH
7 */
8
27fb8310 9#include <linux/debugfs.h>
ec0ad868 10#include <linux/greybus.h>
27fb8310
GKH
11
12static struct dentry *gb_debug_root;
13
47ed2c92 14void __init gb_debugfs_init(void)
27fb8310
GKH
15{
16 gb_debug_root = debugfs_create_dir("greybus", NULL);
27fb8310
GKH
17}
18
de536e30 19void gb_debugfs_cleanup(void)
27fb8310
GKH
20{
21 debugfs_remove_recursive(gb_debug_root);
f66832da 22 gb_debug_root = NULL;
27fb8310 23}
e8f824b6
AB
24
25struct dentry *gb_debugfs_get(void)
26{
27 return gb_debug_root;
28}
29EXPORT_SYMBOL_GPL(gb_debugfs_get);