mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Call __phys_mem_access_prot() from the fbdev mmap helper pgprot_framebuffer(). Allows to avoid the file argument of NULL. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
18 lines
419 B
C
18 lines
419 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_FB_H_
|
|
#define _ASM_FB_H_
|
|
|
|
#include <asm/page.h>
|
|
|
|
static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
|
|
unsigned long vm_start, unsigned long vm_end,
|
|
unsigned long offset)
|
|
{
|
|
return __phys_mem_access_prot(PHYS_PFN(offset), vm_end - vm_start, prot);
|
|
}
|
|
#define pgprot_framebuffer pgprot_framebuffer
|
|
|
|
#include <asm-generic/fb.h>
|
|
|
|
#endif /* _ASM_FB_H_ */
|