diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fb.h | 18 |
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 { | |||
| 175 | u32 flags; | 175 | u32 flags; |
| 176 | }; | 176 | }; |
| 177 | 177 | ||
| 178 | #ifdef CONFIG_FB_NOTIFY | ||
| 178 | extern int fb_register_client(struct notifier_block *nb); | 179 | extern int fb_register_client(struct notifier_block *nb); |
| 179 | extern int fb_unregister_client(struct notifier_block *nb); | 180 | extern int fb_unregister_client(struct notifier_block *nb); |
| 180 | extern int fb_notifier_call_chain(unsigned long val, void *v); | 181 | extern int fb_notifier_call_chain(unsigned long val, void *v); |
| 182 | #else | ||
| 183 | static inline int fb_register_client(struct notifier_block *nb) | ||
| 184 | { | ||
| 185 | return 0; | ||
| 186 | }; | ||
| 187 | |||
| 188 | static inline int fb_unregister_client(struct notifier_block *nb) | ||
| 189 | { | ||
| 190 | return 0; | ||
| 191 | }; | ||
| 192 | |||
| 193 | static inline int fb_notifier_call_chain(unsigned long val, void *v) | ||
| 194 | { | ||
| 195 | return 0; | ||
| 196 | }; | ||
| 197 | #endif | ||
| 198 | |||
| 181 | /* | 199 | /* |
| 182 | * Pixmap structure definition | 200 | * Pixmap structure definition |
| 183 | * | 201 | * |
