forked from Minki/linux
19757fc843
Instead of having fbdev framework core files at the root fbdev directory, mixed with random fbdev device drivers, move the fbdev core files to a separate core directory. This makes it much clearer which of the files are actually part of the fbdev framework, and which are part of device drivers. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Rob Clark <robdclark@gmail.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/*
|
|
* 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>
|
|
#include <linux/export.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);
|