mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 11:51:27 +00:00
2d6512892c
Currently, we have a bunch of files in sysfs that display all sorts of debugging information for the device controller, so they have to move to debugfs where they belong. The "registers" interface have been removed, since it doesn't fit into the current driver design as is and it's hardly a good idea to touch the registers from userspace anyway. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
740 B
C
31 lines
740 B
C
/*
|
|
* debug.h - ChipIdea USB driver debug interfaces
|
|
*
|
|
* Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
|
|
*
|
|
* Author: David Lopo
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __DRIVERS_USB_CHIPIDEA_DEBUG_H
|
|
#define __DRIVERS_USB_CHIPIDEA_DEBUG_H
|
|
|
|
#ifdef CONFIG_USB_CHIPIDEA_DEBUG
|
|
int dbg_create_files(struct ci13xxx *ci);
|
|
void dbg_remove_files(struct ci13xxx *ci);
|
|
#else
|
|
static inline int dbg_create_files(struct ci13xxx *ci)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void dbg_remove_files(struct ci13xxx *ci)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __DRIVERS_USB_CHIPIDEA_DEBUG_H */
|