Skip to content

Commit 2fd001c

Browse files
Thomas Zimmermannarndb
authored andcommitted
arch: Rename fbdev header and source files
The per-architecture fbdev code has no dependencies on fbdev and can be used for any video-related subsystem. Rename the files to 'video'. Use video-sti.c on parisc as the source file depends on CONFIG_STI_CORE. On arc, arm, arm64, sh, and um the asm header file is an empty wrapper around the file in asm-generic. Let Kbuild generate the file. The build system does this automatically. Only um needs to generate video.h explicitly, so that it overrides the host architecture's header. The latter would otherwise interfere with the build. Further update all includes statements, include guards, and Makefiles. Also update a few strings and comments to refer to video instead of fbdev. v3: - arc, arm, arm64, sh: generate asm header via build system (Sam, Helge, Arnd) - um: rename fb.h to video.h - fix typo in commit message (Sam) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Cc: Vineet Gupta <vgupta@kernel.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Huacai Chen <chenhuacai@kernel.org> Cc: WANG Xuerui <kernel@xen0n.name> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com> Cc: Helge Deller <deller@gmx.de> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: "David S. Miller" <davem@davemloft.net> Cc: Andreas Larsson <andreas@gaisler.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: x86@kernel.org Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent f178e96 commit 2fd001c

File tree

22 files changed

+45
-75
lines changed

22 files changed

+45
-75
lines changed

arch/arc/include/asm/fb.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

arch/arm/include/asm/fb.h

Lines changed: 0 additions & 6 deletions
This file was deleted.

arch/arm64/include/asm/fb.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

arch/loongarch/include/asm/fb.h renamed to arch/loongarch/include/asm/video.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/*
33
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
44
*/
5-
#ifndef _ASM_FB_H_
6-
#define _ASM_FB_H_
5+
#ifndef _ASM_VIDEO_H_
6+
#define _ASM_VIDEO_H_
77

88
#include <linux/compiler.h>
99
#include <linux/string.h>
@@ -26,6 +26,6 @@ static inline void fb_memset_io(volatile void __iomem *addr, int c, size_t n)
2626
}
2727
#define fb_memset fb_memset_io
2828

29-
#include <asm-generic/fb.h>
29+
#include <asm-generic/video.h>
3030

31-
#endif /* _ASM_FB_H_ */
31+
#endif /* _ASM_VIDEO_H_ */

arch/m68k/include/asm/fb.h renamed to arch/m68k/include/asm/video.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef _ASM_FB_H_
3-
#define _ASM_FB_H_
2+
#ifndef _ASM_VIDEO_H_
3+
#define _ASM_VIDEO_H_
44

55
#include <asm/page.h>
66
#include <asm/setup.h>
@@ -27,6 +27,6 @@ static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
2727
}
2828
#define pgprot_framebuffer pgprot_framebuffer
2929

30-
#include <asm-generic/fb.h>
30+
#include <asm-generic/video.h>
3131

32-
#endif /* _ASM_FB_H_ */
32+
#endif /* _ASM_VIDEO_H_ */

arch/mips/include/asm/fb.h renamed to arch/mips/include/asm/video.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _ASM_FB_H_
2-
#define _ASM_FB_H_
1+
#ifndef _ASM_VIDEO_H_
2+
#define _ASM_VIDEO_H_
33

44
#include <asm/page.h>
55

@@ -13,8 +13,8 @@ static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
1313

1414
/*
1515
* MIPS doesn't define __raw_ I/O macros, so the helpers
16-
* in <asm-generic/fb.h> don't generate fb_readq() and
17-
* fb_write(). We have to provide them here.
16+
* in <asm-generic/video.h> don't generate fb_readq() and
17+
* fb_writeq(). We have to provide them here.
1818
*
1919
* TODO: Convert MIPS to generic I/O. The helpers below can
2020
* then be removed.
@@ -33,6 +33,6 @@ static inline void fb_writeq(u64 b, volatile void __iomem *addr)
3333
#define fb_writeq fb_writeq
3434
#endif
3535

36-
#include <asm-generic/fb.h>
36+
#include <asm-generic/video.h>
3737

38-
#endif /* _ASM_FB_H_ */
38+
#endif /* _ASM_VIDEO_H_ */
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef _ASM_FB_H_
3-
#define _ASM_FB_H_
2+
#ifndef _ASM_VIDEO_H_
3+
#define _ASM_VIDEO_H_
44

55
#include <linux/types.h>
66

@@ -11,6 +11,6 @@ bool video_is_primary_device(struct device *dev);
1111
#define video_is_primary_device video_is_primary_device
1212
#endif
1313

14-
#include <asm-generic/fb.h>
14+
#include <asm-generic/video.h>
1515

16-
#endif /* _ASM_FB_H_ */
16+
#endif /* _ASM_VIDEO_H_ */

arch/parisc/video/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3-
obj-$(CONFIG_STI_CORE) += fbdev.o
3+
obj-$(CONFIG_STI_CORE) += video-sti.o

arch/parisc/video/fbdev.c renamed to arch/parisc/video/video-sti.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <video/sticore.h>
1111

12-
#include <asm/fb.h>
12+
#include <asm/video.h>
1313

1414
bool video_is_primary_device(struct device *dev)
1515
{
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef _ASM_FB_H_
3-
#define _ASM_FB_H_
2+
#ifndef _ASM_VIDEO_H_
3+
#define _ASM_VIDEO_H_
44

55
#include <asm/page.h>
66

@@ -12,6 +12,6 @@ static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
1212
}
1313
#define pgprot_framebuffer pgprot_framebuffer
1414

15-
#include <asm-generic/fb.h>
15+
#include <asm-generic/video.h>
1616

17-
#endif /* _ASM_FB_H_ */
17+
#endif /* _ASM_VIDEO_H_ */

0 commit comments

Comments
 (0)