Path: blob/master/drivers/misc/iwmc3200top/debugfs.h
15112 views
/*1* iwmc3200top - Intel Wireless MultiCom 3200 Top Driver2* drivers/misc/iwmc3200top/debufs.h3*4* Copyright (C) 2009 Intel Corporation. All rights reserved.5*6* This program is free software; you can redistribute it and/or7* modify it under the terms of the GNU General Public License version8* 2 as published by the Free Software Foundation.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA18* 02110-1301, USA.19*20*21* Author Name: Maxim Grabarnik <[email protected]>22* -23*24*/2526#ifndef __DEBUGFS_H__27#define __DEBUGFS_H__282930#ifdef CONFIG_IWMC3200TOP_DEBUGFS3132struct iwmct_debugfs {33const char *name;34struct dentry *dir_drv;35struct dir_drv_files {36} dbgfs_drv_files;37};3839void iwmct_dbgfs_register(struct iwmct_priv *priv, const char *name);40void iwmct_dbgfs_unregister(struct iwmct_debugfs *dbgfs);4142#else /* CONFIG_IWMC3200TOP_DEBUGFS */4344struct iwmct_debugfs;4546static inline void47iwmct_dbgfs_register(struct iwmct_priv *priv, const char *name)48{}4950static inline void51iwmct_dbgfs_unregister(struct iwmct_debugfs *dbgfs)52{}5354#endif /* CONFIG_IWMC3200TOP_DEBUGFS */5556#endif /* __DEBUGFS_H__ */57585960