Skip to content

Commit 9c053ef

Browse files
author
Thomas Zimmermann
committed
fbdev: Harmonize some comments in <linux/fb.h>
Make the comments for I/O, system and DMA memory say the same. Makes the header file's structure more obvious. Suggested-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 94fc7ad commit 9c053ef

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

include/linux/fb.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var);
526526
extern int fb_blank(struct fb_info *info, int blank);
527527

528528
/*
529-
* Drawing operations where framebuffer is in I/O memory
529+
* Helpers for framebuffers in I/O memory
530530
*/
531531

532532
extern void cfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
@@ -537,10 +537,6 @@ extern ssize_t fb_io_read(struct fb_info *info, char __user *buf,
537537
extern ssize_t fb_io_write(struct fb_info *info, const char __user *buf,
538538
size_t count, loff_t *ppos);
539539

540-
/*
541-
* Initializes struct fb_ops for framebuffers in I/O memory.
542-
*/
543-
544540
#define __FB_DEFAULT_IO_OPS_RDWR \
545541
.fb_read = fb_io_read, \
546542
.fb_write = fb_io_write
@@ -559,7 +555,7 @@ extern ssize_t fb_io_write(struct fb_info *info, const char __user *buf,
559555
__FB_DEFAULT_IO_OPS_MMAP
560556

561557
/*
562-
* Drawing operations where framebuffer is in system RAM
558+
* Helpers for framebuffers in system memory
563559
*/
564560

565561
extern void sys_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
@@ -570,10 +566,6 @@ extern ssize_t fb_sys_read(struct fb_info *info, char __user *buf,
570566
extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
571567
size_t count, loff_t *ppos);
572568

573-
/*
574-
* Initializes struct fb_ops for framebuffers in system memory.
575-
*/
576-
577569
#define __FB_DEFAULT_SYS_OPS_RDWR \
578570
.fb_read = fb_sys_read, \
579571
.fb_write = fb_sys_write

0 commit comments

Comments
 (0)