mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 05:06:39 +07:00
8465def499
The Greybus core code has been stable for a long time, and has been shipping for many years in millions of phones. With the advent of a recent Google Summer of Code project, and a number of new devices in the works from various companies, it is time to get the core greybus code out of staging as it really is going to be with us for a while. Cc: Johan Hovold <johan@kernel.org> Cc: linux-kernel@vger.kernel.org Cc: greybus-dev@lists.linaro.org Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Alex Elder <elder@kernel.org> Link: https://lore.kernel.org/r/20190825055429.18547-9-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 lines
515 B
C
30 lines
515 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Greybus debugfs code
|
|
*
|
|
* Copyright 2014 Google Inc.
|
|
* Copyright 2014 Linaro Ltd.
|
|
*/
|
|
|
|
#include <linux/debugfs.h>
|
|
#include <linux/greybus.h>
|
|
|
|
static struct dentry *gb_debug_root;
|
|
|
|
void __init gb_debugfs_init(void)
|
|
{
|
|
gb_debug_root = debugfs_create_dir("greybus", NULL);
|
|
}
|
|
|
|
void gb_debugfs_cleanup(void)
|
|
{
|
|
debugfs_remove_recursive(gb_debug_root);
|
|
gb_debug_root = NULL;
|
|
}
|
|
|
|
struct dentry *gb_debugfs_get(void)
|
|
{
|
|
return gb_debug_root;
|
|
}
|
|
EXPORT_SYMBOL_GPL(gb_debugfs_get);
|