xref: /openbmc/linux/arch/sh/include/asm/fb.h (revision f15cbe6f)
1f15cbe6fSPaul Mundt #ifndef _ASM_FB_H_
2f15cbe6fSPaul Mundt #define _ASM_FB_H_
3f15cbe6fSPaul Mundt 
4f15cbe6fSPaul Mundt #include <linux/fb.h>
5f15cbe6fSPaul Mundt #include <linux/fs.h>
6f15cbe6fSPaul Mundt #include <asm/page.h>
7f15cbe6fSPaul Mundt 
8f15cbe6fSPaul Mundt static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
9f15cbe6fSPaul Mundt 				unsigned long off)
10f15cbe6fSPaul Mundt {
11f15cbe6fSPaul Mundt 	vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
12f15cbe6fSPaul Mundt }
13f15cbe6fSPaul Mundt 
14f15cbe6fSPaul Mundt static inline int fb_is_primary_device(struct fb_info *info)
15f15cbe6fSPaul Mundt {
16f15cbe6fSPaul Mundt 	return 0;
17f15cbe6fSPaul Mundt }
18f15cbe6fSPaul Mundt 
19f15cbe6fSPaul Mundt #endif /* _ASM_FB_H_ */
20