Module Name: src
Committed By: bouyer
Date: Sun Oct 16 17:23:40 UTC 2022
Modified Files:
src/sys/arch/arm/sunxi [bouyer-sunxi-drm]: sunxi_tcon.c
Log Message:
sunxi_tcon1_set_videomode: use DRM_MODE_FLAGS_*
To generate a diff of this commit:
cvs rdiff -u -r1.13.2.2 -r1.13.2.3 src/sys/arch/arm/sunxi/sunxi_tcon.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/sunxi/sunxi_tcon.c
diff -u src/sys/arch/arm/sunxi/sunxi_tcon.c:1.13.2.2 src/sys/arch/arm/sunxi/sunxi_tcon.c:1.13.2.3
--- src/sys/arch/arm/sunxi/sunxi_tcon.c:1.13.2.2 Sun Oct 16 17:21:46 2022
+++ src/sys/arch/arm/sunxi/sunxi_tcon.c Sun Oct 16 17:23:40 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_tcon.c,v 1.13.2.2 2022/10/16 17:21:46 bouyer Exp $ */
+/* $NetBSD: sunxi_tcon.c,v 1.13.2.3 2022/10/16 17:23:40 bouyer Exp $ */
/*-
* Copyright (c) 2018 Manuel Bouyer <[email protected]>
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_tcon.c,v 1.13.2.2 2022/10/16 17:21:46 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_tcon.c,v 1.13.2.3 2022/10/16 17:23:40 bouyer Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -822,9 +822,9 @@ sunxi_tcon1_set_videomode(device_t dev,
sunxi_debe_set_videomode(fdt_endpoint_device(sc->sc_in_rep), mode);
if (mode) {
- const u_int interlace_p = !!(mode->flags & VID_INTERLACE);
- const u_int phsync_p = !!(mode->flags & VID_PHSYNC);
- const u_int pvsync_p = !!(mode->flags & VID_PVSYNC);
+ const u_int interlace_p = !!(mode->flags & DRM_MODE_FLAG_INTERLACE);
+ const u_int phsync_p = !!(mode->flags & DRM_MODE_FLAG_PHSYNC);
+ const u_int pvsync_p = !!(mode->flags & DRM_MODE_FLAG_PVSYNC);
const u_int hspw = mode->hsync_end - mode->hsync_start;
const u_int hbp = mode->htotal - mode->hsync_start;
const u_int vspw = mode->vsync_end - mode->vsync_start;