-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] fbdev: statically link the framebuffer notification functions
The backlight and lcd subsystems can be notified by the framebuffer layer of blanking events. However, these subsystems, as a whole, can function independently from the framebuffer layer. But in order to enable to the lcd and backlight subsystems, the framebuffer has to be compiled also, effectively sucking in a huge amount of unneeded code. To prevent dependency problems, separate out the framebuffer notification mechanism from the framebuffer layer and permanently link it to the kernel. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Antonino A. Daplas
authored and
Linus Torvalds
committed
Jul 31, 2006
1 parent
834a9b8
commit 256154f
Showing
6 changed files
with
62 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* linux/drivers/video/fb_notify.c | ||
* | ||
* Copyright (C) 2006 Antonino Daplas <adaplas@pol.net> | ||
* | ||
* 2001 - Documented with DocBook | ||
* - Brad Douglas <brad@neruo.com> | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file COPYING in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#include <linux/fb.h> | ||
#include <linux/notifier.h> | ||
|
||
static BLOCKING_NOTIFIER_HEAD(fb_notifier_list); | ||
|
||
/** | ||
* fb_register_client - register a client notifier | ||
* @nb: notifier block to callback on events | ||
*/ | ||
int fb_register_client(struct notifier_block *nb) | ||
{ | ||
return blocking_notifier_chain_register(&fb_notifier_list, nb); | ||
} | ||
EXPORT_SYMBOL(fb_register_client); | ||
|
||
/** | ||
* fb_unregister_client - unregister a client notifier | ||
* @nb: notifier block to callback on events | ||
*/ | ||
int fb_unregister_client(struct notifier_block *nb) | ||
{ | ||
return blocking_notifier_chain_unregister(&fb_notifier_list, nb); | ||
} | ||
EXPORT_SYMBOL(fb_unregister_client); | ||
|
||
/** | ||
* fb_notifier_call_chain - notify clients of fb_events | ||
* | ||
*/ | ||
int fb_notifier_call_chain(unsigned long val, void *v) | ||
{ | ||
return blocking_notifier_call_chain(&fb_notifier_list, val, v); | ||
} | ||
EXPORT_SYMBOL_GPL(fb_notifier_call_chain); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters