xref: /linux/drivers/video/fbdev/wmt_ge_rops.h (revision 8c994eff8fcfe8ecb1f1dbebed25b4d7bb75be12)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifdef CONFIG_FB_WMT_GE_ROPS
3 
4 extern void wmt_ge_fillrect(struct fb_info *info,
5 			    const struct fb_fillrect *rect);
6 extern void wmt_ge_copyarea(struct fb_info *info,
7 			    const struct fb_copyarea *area);
8 extern int wmt_ge_sync(struct fb_info *info);
9 
10 #else
11 
12 static inline int wmt_ge_sync(struct fb_info *p)
13 {
14 	return 0;
15 }
16 
17 static inline void wmt_ge_fillrect(struct fb_info *p,
18 				    const struct fb_fillrect *rect)
19 {
20 	sys_fillrect(p, rect);
21 }
22 
23 static inline void wmt_ge_copyarea(struct fb_info *p,
24 				     const struct fb_copyarea *area)
25 {
26 	sys_copyarea(p, area);
27 }
28 
29 #endif
30