summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/core/fb_internal.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-06-13 14:07:10 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2023-06-27 10:58:51 +0300
commitabcc2f3c4cd2ea805f215947eeb3af02846cbd89 (patch)
treeb7e8b73261810ded333b5014988d5b3cc6ccb92f /drivers/video/fbdev/core/fb_internal.h
parente2af003210c6395f32a5ba9a032ff9589ee7bb09 (diff)
downloadlinux-abcc2f3c4cd2ea805f215947eeb3af02846cbd89.tar.xz
fbdev/core: Move procfs code to separate file
Move fbdev's procfs code into a separate file and contain it in init and cleanup helpers. For the cleanup, replace remove_proc_entry() with proc_remove(). It is equivalent in functionality, but looks more like an inverse of proc_create_seq(). v2: * document proc_remove() usage (Sam) * revert unrelated removal of for_each_registered_fb() Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-36-tzimmermann@suse.de
Diffstat (limited to 'drivers/video/fbdev/core/fb_internal.h')
-rw-r--r--drivers/video/fbdev/core/fb_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/video/fbdev/core/fb_internal.h b/drivers/video/fbdev/core/fb_internal.h
index 0b9640ae7a3d..51f7c9f04e45 100644
--- a/drivers/video/fbdev/core/fb_internal.h
+++ b/drivers/video/fbdev/core/fb_internal.h
@@ -3,7 +3,17 @@
#ifndef _FB_INTERNAL_H
#define _FB_INTERNAL_H
-struct fb_info;
+#include <linux/fb.h>
+#include <linux/mutex.h>
+
+/* fbmem.c */
+extern struct mutex registration_lock;
+extern struct fb_info *registered_fb[FB_MAX];
+extern int num_registered_fb;
+
+/* fb_procfs.c */
+int fb_init_procfs(void);
+void fb_cleanup_procfs(void);
/* fbsysfs.c */
int fb_device_create(struct fb_info *fb_info);