xref: /openbmc/linux/arch/arc/include/asm/fb.h (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2e5e0a65cSAlexey Brodkin #ifndef _ASM_FB_H_
3e5e0a65cSAlexey Brodkin #define _ASM_FB_H_
4e5e0a65cSAlexey Brodkin 
5e5e0a65cSAlexey Brodkin #include <linux/fb.h>
6e5e0a65cSAlexey Brodkin #include <linux/fs.h>
7e5e0a65cSAlexey Brodkin #include <asm/page.h>
8e5e0a65cSAlexey Brodkin 
9e5e0a65cSAlexey Brodkin static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
10e5e0a65cSAlexey Brodkin 				unsigned long off)
11e5e0a65cSAlexey Brodkin {
12e5e0a65cSAlexey Brodkin 	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
13e5e0a65cSAlexey Brodkin }
14e5e0a65cSAlexey Brodkin 
15e5e0a65cSAlexey Brodkin static inline int fb_is_primary_device(struct fb_info *info)
16e5e0a65cSAlexey Brodkin {
17e5e0a65cSAlexey Brodkin 	return 0;
18e5e0a65cSAlexey Brodkin }
19e5e0a65cSAlexey Brodkin 
20e5e0a65cSAlexey Brodkin #endif /* _ASM_FB_H_ */
21