Commit 5727dcfd authored by Daniel Vetter's avatar Daniel Vetter Committed by Thomas Zimmermann

fbdev: Make registered_fb[] private to fbmem.c

No driver access this anymore, except for the olpc dcon fbdev driver but
that has been marked as broken anyways by commit de0952f2 ("staging:
olpc_dcon: mark driver as broken").
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220725075400.68478-1-javierm@redhat.com
parent 57b2efce
...@@ -51,10 +51,10 @@ ...@@ -51,10 +51,10 @@
static DEFINE_MUTEX(registration_lock); static DEFINE_MUTEX(registration_lock);
struct fb_info *registered_fb[FB_MAX] __read_mostly; struct fb_info *registered_fb[FB_MAX] __read_mostly;
EXPORT_SYMBOL(registered_fb);
int num_registered_fb __read_mostly; int num_registered_fb __read_mostly;
EXPORT_SYMBOL(num_registered_fb); #define for_each_registered_fb(i) \
for (i = 0; i < FB_MAX; i++) \
if (!registered_fb[i]) {} else
bool fb_center_logo __read_mostly; bool fb_center_logo __read_mostly;
......
...@@ -627,16 +627,10 @@ extern int fb_get_color_depth(struct fb_var_screeninfo *var, ...@@ -627,16 +627,10 @@ extern int fb_get_color_depth(struct fb_var_screeninfo *var,
extern int fb_get_options(const char *name, char **option); extern int fb_get_options(const char *name, char **option);
extern int fb_new_modelist(struct fb_info *info); extern int fb_new_modelist(struct fb_info *info);
extern struct fb_info *registered_fb[FB_MAX];
extern int num_registered_fb;
extern bool fb_center_logo; extern bool fb_center_logo;
extern int fb_logo_count; extern int fb_logo_count;
extern struct class *fb_class; extern struct class *fb_class;
#define for_each_registered_fb(i) \
for (i = 0; i < FB_MAX; i++) \
if (!registered_fb[i]) {} else
static inline void lock_fb_info(struct fb_info *info) static inline void lock_fb_info(struct fb_info *info)
{ {
mutex_lock(&info->lock); mutex_lock(&info->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment