[PATCH 2/2] drm/logicvc: Define max dimensions from USHRT_MAX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the existing macro instead of redefining it.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@xxxxxxxxxxx>
---
 drivers/gpu/drm/logicvc/logicvc_regs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/logicvc/logicvc_regs.h b/drivers/gpu/drm/logicvc/logicvc_regs.h
index 4aae27e9ba2b..0fc413fef6dd 100644
--- a/drivers/gpu/drm/logicvc/logicvc_regs.h
+++ b/drivers/gpu/drm/logicvc/logicvc_regs.h
@@ -10,7 +10,7 @@
 #ifndef _LOGICVC_REGS_H_
 #define _LOGICVC_REGS_H_
 
-#define LOGICVC_DIMENSIONS_MAX		(BIT(16) - 1)
+#define LOGICVC_DIMENSIONS_MAX		USHRT_MAX
 
 #define LOGICVC_HSYNC_FRONT_PORCH_REG	0x00
 #define LOGICVC_HSYNC_REG		0x08
-- 
2.42.0




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux