aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fb.h
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2015-11-25 00:11:48 -0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-12-15 15:41:24 +0200
commit5ec9653806baa5928ee01109004411e3bed376f2 (patch)
tree60d28a5ce677ea7bba199ecff10fece4704df275 /include/linux/fb.h
parentfbdev: Debug knob to register without holding console_lock (diff)
downloadlinux-dev-5ec9653806baa5928ee01109004411e3bed376f2.tar.xz
linux-dev-5ec9653806baa5928ee01109004411e3bed376f2.zip
fbdev: Make fb-notify a no-op if CONFIG_FB=n
There's no point in having support for framebuffer notifications is CONFIG_FB is disabled. This commit adds the necessary stubs for code to link properly when CONFIG_FB=n and moves fb-notify.o to be built only when CONFIG_FB=y. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r--include/linux/fb.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 3d003805aac3..55433f86f0a3 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -175,9 +175,27 @@ struct fb_blit_caps {
u32 flags;
};
+#ifdef CONFIG_FB_NOTIFY
extern int fb_register_client(struct notifier_block *nb);
extern int fb_unregister_client(struct notifier_block *nb);
extern int fb_notifier_call_chain(unsigned long val, void *v);
+#else
+static inline int fb_register_client(struct notifier_block *nb)
+{
+ return 0;
+};
+
+static inline int fb_unregister_client(struct notifier_block *nb)
+{
+ return 0;
+};
+
+static inline int fb_notifier_call_chain(unsigned long val, void *v)
+{
+ return 0;
+};
+#endif
+
/*
* Pixmap structure definition
*