Blame view

kernel/linux-imx6_3.14.28/drivers/video/fb_notify.c 1.21 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  /*
   *  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);