Commit 2d05f56a authored by Thomas Zimmermann's avatar Thomas Zimmermann

fbdev: Remove trailing whitespace

Removes trailing whitespaces in several places.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200729134148.6855-2-tzimmermann@suse.de
parent e20dfd27
...@@ -777,7 +777,7 @@ fb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) ...@@ -777,7 +777,7 @@ fb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
if (info->fbops->fb_read) if (info->fbops->fb_read)
return info->fbops->fb_read(info, buf, count, ppos); return info->fbops->fb_read(info, buf, count, ppos);
total_size = info->screen_size; total_size = info->screen_size;
if (total_size == 0) if (total_size == 0)
...@@ -842,7 +842,7 @@ fb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) ...@@ -842,7 +842,7 @@ fb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
if (info->fbops->fb_write) if (info->fbops->fb_write)
return info->fbops->fb_write(info, buf, count, ppos); return info->fbops->fb_write(info, buf, count, ppos);
total_size = info->screen_size; total_size = info->screen_size;
if (total_size == 0) if (total_size == 0)
...@@ -1061,7 +1061,7 @@ EXPORT_SYMBOL(fb_set_var); ...@@ -1061,7 +1061,7 @@ EXPORT_SYMBOL(fb_set_var);
int int
fb_blank(struct fb_info *info, int blank) fb_blank(struct fb_info *info, int blank)
{ {
struct fb_event event; struct fb_event event;
int ret = -EINVAL; int ret = -EINVAL;
...@@ -1437,7 +1437,7 @@ __releases(&info->lock) ...@@ -1437,7 +1437,7 @@ __releases(&info->lock)
return res; return res;
} }
static int static int
fb_release(struct inode *inode, struct file *file) fb_release(struct inode *inode, struct file *file)
__acquires(&info->lock) __acquires(&info->lock)
__releases(&info->lock) __releases(&info->lock)
...@@ -1627,7 +1627,7 @@ static int do_register_framebuffer(struct fb_info *fb_info) ...@@ -1627,7 +1627,7 @@ static int do_register_framebuffer(struct fb_info *fb_info)
fb_info->pixmap.access_align = 32; fb_info->pixmap.access_align = 32;
fb_info->pixmap.flags = FB_PIXMAP_DEFAULT; fb_info->pixmap.flags = FB_PIXMAP_DEFAULT;
} }
} }
fb_info->pixmap.offset = 0; fb_info->pixmap.offset = 0;
if (!fb_info->pixmap.blit_x) if (!fb_info->pixmap.blit_x)
......
...@@ -124,7 +124,7 @@ struct fb_cursor_user { ...@@ -124,7 +124,7 @@ struct fb_cursor_user {
* Register/unregister for framebuffer events * Register/unregister for framebuffer events
*/ */
/* The resolution of the passed in fb_info about to change */ /* The resolution of the passed in fb_info about to change */
#define FB_EVENT_MODE_CHANGE 0x01 #define FB_EVENT_MODE_CHANGE 0x01
#ifdef CONFIG_GUMSTIX_AM200EPD #ifdef CONFIG_GUMSTIX_AM200EPD
...@@ -459,12 +459,12 @@ struct fb_info { ...@@ -459,12 +459,12 @@ struct fb_info {
#if IS_ENABLED(CONFIG_FB_BACKLIGHT) #if IS_ENABLED(CONFIG_FB_BACKLIGHT)
/* assigned backlight device */ /* assigned backlight device */
/* set before framebuffer registration, /* set before framebuffer registration,
remove after unregister */ remove after unregister */
struct backlight_device *bl_dev; struct backlight_device *bl_dev;
/* Backlight level curve */ /* Backlight level curve */
struct mutex bl_curve_mutex; struct mutex bl_curve_mutex;
u8 bl_curve[FB_BACKLIGHT_LEVELS]; u8 bl_curve[FB_BACKLIGHT_LEVELS];
#endif #endif
#ifdef CONFIG_FB_DEFERRED_IO #ifdef CONFIG_FB_DEFERRED_IO
...@@ -483,8 +483,8 @@ struct fb_info { ...@@ -483,8 +483,8 @@ struct fb_info {
char __iomem *screen_base; /* Virtual address */ char __iomem *screen_base; /* Virtual address */
char *screen_buffer; char *screen_buffer;
}; };
unsigned long screen_size; /* Amount of ioremapped VRAM or 0 */ unsigned long screen_size; /* Amount of ioremapped VRAM or 0 */
void *pseudo_palette; /* Fake palette of 16 colors */ void *pseudo_palette; /* Fake palette of 16 colors */
#define FBINFO_STATE_RUNNING 0 #define FBINFO_STATE_RUNNING 0
#define FBINFO_STATE_SUSPENDED 1 #define FBINFO_STATE_SUSPENDED 1
u32 state; /* Hardware state i.e suspend */ u32 state; /* Hardware state i.e suspend */
...@@ -587,11 +587,11 @@ static inline struct apertures_struct *alloc_apertures(unsigned int max_num) { ...@@ -587,11 +587,11 @@ static inline struct apertures_struct *alloc_apertures(unsigned int max_num) {
* `Generic' versions of the frame buffer device operations * `Generic' versions of the frame buffer device operations
*/ */
extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var); extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var);
extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var); extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var);
extern int fb_blank(struct fb_info *info, int blank); extern int fb_blank(struct fb_info *info, int blank);
extern void cfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect); extern void cfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
extern void cfb_copyarea(struct fb_info *info, const struct fb_copyarea *area); extern void cfb_copyarea(struct fb_info *info, const struct fb_copyarea *area);
extern void cfb_imageblit(struct fb_info *info, const struct fb_image *image); extern void cfb_imageblit(struct fb_info *info, const struct fb_image *image);
/* /*
* Drawing operations where framebuffer is in system RAM * Drawing operations where framebuffer is in system RAM
......
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