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