Skip to content

Commit 3eb3c33

Browse files
committed
Merge tag 'asm-generic-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
Pull asm-generic cleanups from Arnd Bergmann: "These are a few cross-architecture cleanup patches: - separate out fbdev support from the asm/video.h contents that may be used by either the old fbdev drivers or the newer drm display code (Thomas Zimmermann) - cleanups for the generic bitops code and asm-generic/bug.h (Thorsten Blum) - remove the orphaned include/asm-generic/page.h header that used to be included by long-removed mmu-less architectures (me)" * tag 'asm-generic-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: arch: Fix name collision with ACPI's video.o bug: Improve comment asm-generic: remove unused asm-generic/page.h arch: Rename fbdev header and source files arch: Remove struct fb_info from video helpers arch: Select fbdev helpers with CONFIG_VIDEO bitops: Change function return types from long to int
2 parents 1b03616 + 34cda5a commit 3eb3c33

File tree

39 files changed

+139
-269
lines changed

39 files changed

+139
-269
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_ */

arch/parisc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export LIBGCC
119119

120120
libs-y += arch/parisc/lib/ $(LIBGCC)
121121

122-
drivers-y += arch/parisc/video/
122+
drivers-$(CONFIG_VIDEO) += arch/parisc/video/
123123

124124
boot := arch/parisc/boot
125125

arch/parisc/include/asm/fb.h

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

arch/parisc/include/asm/video.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef _ASM_VIDEO_H_
3+
#define _ASM_VIDEO_H_
4+
5+
#include <linux/types.h>
6+
7+
struct device;
8+
9+
#if defined(CONFIG_STI_CORE)
10+
bool video_is_primary_device(struct device *dev);
11+
#define video_is_primary_device video_is_primary_device
12+
#endif
13+
14+
#include <asm-generic/video.h>
15+
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

0 commit comments

Comments
 (0)