Skip to content

Commit

Permalink
fbdev: Use /* */ comment in initializer macro
Browse files Browse the repository at this point in the history
Use /* */ in initializer macro to avoid out-commenting the comma
at the end of the line.

Reported-by: Christian König <ckoenig.leichtzumerken@gmail.com>
Closes: https://lore.kernel.org/dri-devel/20230530150253.22758-1-tzimmermann@suse.de/T/#m356cda2679c17d7a01f30ce2b5282cd9046ea6d4
Fixes: f1061fa ("fbdev: Add initializer macros for struct fb_ops")
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230614131253.10208-1-tzimmermann@suse.de
  • Loading branch information
Thomas Zimmermann committed Jun 15, 2023
1 parent db6da59 commit cf683e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ extern ssize_t fb_io_write(struct fb_info *info, const char __user *buf,
.fb_imageblit = cfb_imageblit

#define __FB_DEFAULT_IO_OPS_MMAP \
.fb_mmap = NULL // default implementation
.fb_mmap = NULL /* default implementation */

#define FB_DEFAULT_IO_OPS \
__FB_DEFAULT_IO_OPS_RDWR, \
Expand Down Expand Up @@ -585,7 +585,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
.fb_imageblit = sys_imageblit

#define __FB_DEFAULT_SYS_OPS_MMAP \
.fb_mmap = NULL // default implementation
.fb_mmap = NULL /* default implementation */

#define FB_DEFAULT_SYS_OPS \
__FB_DEFAULT_SYS_OPS_RDWR, \
Expand Down

0 comments on commit cf683e8

Please sign in to comment.