mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![H Hartley Sweeten](/assets/img/avatar_default.png)
Include the header to pickup the exported symbol prototype. Quiets the sparse warning: warning: symbol 'apple_bl_register' was not declared. Should it be static? warning: symbol 'apple_bl_unregister' was not declared. Should it be static? [akpm@linux-foundation.org: fix resulting build error] Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
26 lines
459 B
C
26 lines
459 B
C
/*
|
|
* apple_bl exported symbols
|
|
*/
|
|
|
|
#ifndef _LINUX_APPLE_BL_H
|
|
#define _LINUX_APPLE_BL_H
|
|
|
|
#if defined(CONFIG_BACKLIGHT_APPLE) || defined(CONFIG_BACKLIGHT_APPLE_MODULE)
|
|
|
|
extern int apple_bl_register(void);
|
|
extern void apple_bl_unregister(void);
|
|
|
|
#else /* !CONFIG_BACKLIGHT_APPLE */
|
|
|
|
static inline int apple_bl_register(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void apple_bl_unregister(void)
|
|
{
|
|
}
|
|
|
|
#endif /* !CONFIG_BACKLIGHT_APPLE */
|
|
|
|
#endif /* _LINUX_APPLE_BL_H */
|