1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (C) 2012 ARM Ltd. 4 */ 5 #ifndef __ASM_FB_H_ 6 #define __ASM_FB_H_ 7 8 #include <linux/fb.h> 9 #include <linux/fs.h> 10 #include <asm/page.h> 11 12 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, 13 unsigned long off) 14 { 15 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); 16 } 17 18 static inline int fb_is_primary_device(struct fb_info *info) 19 { 20 return 0; 21 } 22 23 #endif /* __ASM_FB_H_ */