mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
94be70d4b2
This breaks the debugfs portions of the AB5500 driver into its own file. Split off a _raw function to access registers since we don't want to expose a generically named function globally. Move all required data structures to a shared ab5500-core.h file. Cc: Mattias Wallin <mattias.wallin@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
23 lines
408 B
C
23 lines
408 B
C
/*
|
|
* Copyright (C) 2011 ST-Ericsson
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
* Debugfs interface to the AB5500 core driver
|
|
*/
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
|
void ab5500_setup_debugfs(struct ab5500 *ab);
|
|
void ab5500_remove_debugfs(void);
|
|
|
|
#else /* !CONFIG_DEBUG_FS */
|
|
|
|
static inline void ab5500_setup_debugfs(struct ab5500 *ab)
|
|
{
|
|
}
|
|
|
|
static inline void ab5500_remove_debugfs(void)
|
|
{
|
|
}
|
|
|
|
#endif
|