fb.h 460 B

1234567891011121314151617181920212223
  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. #include <linux/fb.h>
  8. #include <linux/fs.h>
  9. #include <asm/page.h>
  10. static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
  11. unsigned long off)
  12. {
  13. vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
  14. }
  15. static inline int fb_is_primary_device(struct fb_info *info)
  16. {
  17. return 0;
  18. }
  19. #endif /* __ASM_FB_H_ */