]> www.infradead.org Git - nvme.git/commitdiff
fbdev: mach64_cursor: Remove fb_draw.h includes
authorZsolt Kajtar <soci@c64.rulez.org>
Mon, 10 Mar 2025 06:57:45 +0000 (07:57 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 26 Mar 2025 21:39:20 +0000 (22:39 +0100)
Remove dependency on fb_draw.h to allow fbcon packed pixel drawing refactoring.

Signed-off-by: Zsolt Kajtar <soci@c64.rulez.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/aty/mach64_cursor.c

index 971355c2cd7e19a9a86ba516ea8982acc81e4495..e826cb7dd55daa9d8713fe40cf31cb5fac5f5951 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/fb.h>
 #include <linux/init.h>
 #include <linux/string.h>
-#include "../core/fb_draw.h"
 
 #include <asm/io.h>
 
  * definitation and CUR_VERT_POSN must be saturated to zero.
  */
 
+/* compose pixels based on mask */
+static inline unsigned long comp(unsigned long set, unsigned long unset, unsigned long mask)
+{
+       return ((set ^ unset) & mask) ^ unset;
+}
+
     /*
      *  Hardware Cursor support.
      */