mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-19 07:39:54 +02:00

Other architectures implment fb_is_primary_device() in a source file. Do the same on sparc. No functional changes, but allows to remove several include statement from <asm/fb.h>. v2: * don't include <asm/prom.h> in header file Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: "David S. Miller" <davem@davemloft.net> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Helge Deller <deller@gmx.de> Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-18-tzimmermann@suse.de
22 lines
414 B
C
22 lines
414 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _SPARC_FB_H_
|
|
#define _SPARC_FB_H_
|
|
|
|
#include <linux/fs.h>
|
|
|
|
#include <asm/page.h>
|
|
|
|
struct fb_info;
|
|
|
|
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
|
|
unsigned long off)
|
|
{
|
|
#ifdef CONFIG_SPARC64
|
|
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
|
#endif
|
|
}
|
|
|
|
int fb_is_primary_device(struct fb_info *info);
|
|
|
|
#endif /* _SPARC_FB_H_ */
|