1. 15 Mar, 2024 2 commits
    • Michael Ellerman's avatar
      fbdev: mb862xxfb: Fix defined but not used error · 97419172
      Michael Ellerman authored
      socrates_gc_mode is defined at the top-level but then only used inside
      an #ifdef CONFIG_FB_MB862XX_LIME, leading to an error with some configs:
      
        drivers/video/fbdev/mb862xx/mb862xxfbdrv.c:36:31: error: ‘socrates_gc_mode’ defined but not used
           36 | static struct mb862xx_gc_mode socrates_gc_mode = {
      
      Fix it by moving socrates_gc_mode inside that ifdef, immediately prior
      to the only function where it's used.
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      97419172
    • Li Zhijian's avatar
      fbdev: uvesafb: Convert sprintf/snprintf to sysfs_emit · 748c7eba
      Li Zhijian authored
      Per filesystems/sysfs.rst, show() should only use sysfs_emit()
      or sysfs_emit_at() when formatting the value to be returned to user space.
      
      coccinelle complains that there are still a couple of functions that use
      snprintf(). Convert them to sysfs_emit().
      
      sprintf() will be converted as weel if they have.
      
      Generally, this patch is generated by
      make coccicheck M=<path/to/file> MODE=patch \
      COCCI=scripts/coccinelle/api/device_attr_show.cocci
      
      No functional change intended
      
      CC: Helge Deller <deller@gmx.de>
      CC: linux-fbdev@vger.kernel.org
      CC: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarLi Zhijian <lizhijian@fujitsu.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      748c7eba
  2. 31 Jan, 2024 1 commit
  3. 29 Jan, 2024 1 commit
  4. 28 Jan, 2024 7 commits
  5. 27 Jan, 2024 9 commits
  6. 26 Jan, 2024 20 commits