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

fbdev: Include <linux/fb.h> instead of <asm/fb.h>

Replace include statements for <asm/fb.h> with <linux/fb.h>. Fixes
the coding style: if a header is available in asm/ and linux/, it
is preferable to include the header from linux/. This only affects
a few source files, most of which already include <linux/fb.h>.

Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512102444.5438-6-tzimmermann@suse.de

+4 -9
+1 -2
arch/parisc/video/fbdev.c
··· 5 5 * Copyright (C) 2001-2002 Thomas Bogendoerfer <tsbogend@alpha.franken.de> 6 6 */ 7 7 8 + #include <linux/fb.h> 8 9 #include <linux/module.h> 9 - 10 - #include <asm/fb.h> 11 10 12 11 #include <video/sticore.h> 13 12
-1
arch/sparc/video/fbdev.c
··· 4 4 #include <linux/fb.h> 5 5 #include <linux/module.h> 6 6 7 - #include <asm/fb.h> 8 7 #include <asm/prom.h> 9 8 10 9 int fb_is_primary_device(struct fb_info *info)
-2
arch/x86/video/fbdev.c
··· 7 7 * 8 8 */ 9 9 10 - #include <asm/fb.h> 11 - 12 10 #include <linux/fb.h> 13 11 #include <linux/module.h> 14 12 #include <linux/pci.h>
+1 -1
drivers/staging/sm750fb/sm750.c
··· 16 16 #include <linux/pagemap.h> 17 17 #include <linux/screen_info.h> 18 18 #include <linux/console.h> 19 - #include <asm/fb.h> 19 + 20 20 #include "sm750.h" 21 21 #include "sm750_accel.h" 22 22 #include "sm750_cursor.h"
-1
drivers/video/fbdev/core/fbcon.c
··· 75 75 #include <linux/interrupt.h> 76 76 #include <linux/crc32.h> /* For counting font checksums */ 77 77 #include <linux/uaccess.h> 78 - #include <asm/fb.h> 79 78 #include <asm/irq.h> 80 79 81 80 #include "fbcon.h"
-2
drivers/video/fbdev/core/fbmem.c
··· 37 37 #include <linux/mem_encrypt.h> 38 38 #include <linux/pci.h> 39 39 40 - #include <asm/fb.h> 41 - 42 40 #include <video/nomodeset.h> 43 41 #include <video/vga.h> 44 42
+2
include/linux/fb.h
··· 15 15 #include <linux/list.h> 16 16 #include <linux/backlight.h> 17 17 #include <linux/slab.h> 18 + 19 + #include <asm/fb.h> 18 20 #include <asm/io.h> 19 21 20 22 struct vm_area_struct;