Turn FBINFO_xxx defines into proper flags. Gets rid of an unwanted
authorkettenis <kettenis@openbsd.org>
Thu, 11 Jul 2024 12:39:53 +0000 (12:39 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 11 Jul 2024 12:39:53 +0000 (12:39 +0000)
warning introduced by a recent commit to drm_fbdev_dma.c.

ok jsg@

sys/dev/pci/drm/include/linux/fb.h

index fa1035d..ed622af 100644 (file)
@@ -60,11 +60,9 @@ struct fb_info {
 #define FBINFO_STATE_RUNNING   0
 #define FBINFO_STATE_SUSPENDED 1
 
-#define FBINFO_DEFAULT         0
-#define FBINFO_VIRTFB          1
-#define FBINFO_READS_FAST      2
-
-#define FBINFO_HIDE_SMEM_START 0
+#define FBINFO_VIRTFB          0x0001
+#define FBINFO_READS_FAST      0x0002
+#define FBINFO_HIDE_SMEM_START 0x0004
 
 #define FB_ROTATE_UR           0
 #define FB_ROTATE_CW           1