1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * This file is released under the GPLv2
4 * Copyright (C) 2020 Loongson Technology Corporation Limited
5 */
6#ifndef _ASM_FB_H_
7#define _ASM_FB_H_
8
9#include <linux/fb.h>
10#include <linux/fs.h>
11#include <asm/page.h>
12
13static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
14				unsigned long off)
15{
16	vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
17}
18
19static inline int fb_is_primary_device(struct fb_info *info)
20{
21	return 0;
22}
23
24#endif /* _ASM_FB_H_ */
25