Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: tgafb: Fix kernel-doc and set but not used warnings

Fix W=1 warnings:
- Fix kernel-doc
- Drop unused code

v2:
- Updated subject (Lee)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Joe Perches <joe@perches.com>
Cc: Lee Jones <lee.jones@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-18-sam@ravnborg.org

+3 -4
+3 -4
drivers/video/fbdev/tgafb.c
··· 555 555 556 556 /** 557 557 * tgafb_blank - Optional function. Blanks the display. 558 - * @blank_mode: the blank mode we want. 558 + * @blank: the blank mode we want. 559 559 * @info: frame buffer structure that represents a single frame buffer 560 560 */ 561 561 static int ··· 837 837 u32 *palette = ((u32 *)info->pseudo_palette); 838 838 unsigned long pos, line_length, i, j; 839 839 const unsigned char *data; 840 - void __iomem *regs_base, *fb_base; 840 + void __iomem *fb_base; 841 841 842 842 dx = image->dx; 843 843 dy = image->dy; ··· 855 855 if (dy + height > vyres) 856 856 height = vyres - dy; 857 857 858 - regs_base = par->tga_regs_base; 859 858 fb_base = par->tga_fb_base; 860 859 861 860 pos = dy * line_length + (dx * 4); ··· 1033 1034 regs_base + TGA_MODE_REG); 1034 1035 } 1035 1036 1036 - /** 1037 + /* 1037 1038 * tgafb_copyarea - REQUIRED function. Can use generic routines if 1038 1039 * non acclerated hardware and packed pixel based. 1039 1040 * Copies on area of the screen to another area.