xref: /kernel/linux/linux-5.10/drivers/greybus/debugfs.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/greybus/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Greybus debugfs code
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright 2014 Google Inc.
68c2ecf20Sopenharmony_ci * Copyright 2014 Linaro Ltd.
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/debugfs.h>
108c2ecf20Sopenharmony_ci#include <linux/greybus.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistatic struct dentry *gb_debug_root;
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_civoid __init gb_debugfs_init(void)
158c2ecf20Sopenharmony_ci{
168c2ecf20Sopenharmony_ci	gb_debug_root = debugfs_create_dir("greybus", NULL);
178c2ecf20Sopenharmony_ci}
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_civoid gb_debugfs_cleanup(void)
208c2ecf20Sopenharmony_ci{
218c2ecf20Sopenharmony_ci	debugfs_remove_recursive(gb_debug_root);
228c2ecf20Sopenharmony_ci	gb_debug_root = NULL;
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistruct dentry *gb_debugfs_get(void)
268c2ecf20Sopenharmony_ci{
278c2ecf20Sopenharmony_ci	return gb_debug_root;
288c2ecf20Sopenharmony_ci}
298c2ecf20Sopenharmony_ciEXPORT_SYMBOL_GPL(gb_debugfs_get);
30

Indexes created Thu Nov 07 10:32:03 CST 2024