From patchwork Wed Oct 25 13:09:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 13436100 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3C50C07545 for ; Wed, 25 Oct 2023 13:10:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B5BD10E655; Wed, 25 Oct 2023 13:10:56 +0000 (UTC) X-Greylist: delayed 10730 seconds by postgrey-1.36 at gabe; Wed, 25 Oct 2023 13:10:50 UTC Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5BEDF10E5AE for ; Wed, 25 Oct 2023 13:10:50 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7C53E1C0008; Wed, 25 Oct 2023 13:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698239448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UvYmcIcCGRiRBdovjjijg/K4s2UhXR/ugjcSPeRqWQE=; b=fqr6A0QBx9OdbMBlweZ9mllXJ7PsOsV/vG9zCJ7AAInKEDTkgJ99KTerKJfFitSfZGBXzS nXuZL5vf8rPYgtMa6tRnOeK72TRI0l5+LSZyc2+iFzlZHq48PhLopt35AaYpre5fV/yaLc ORA/A+OmQ/PaNW41tigZrrB7VvwA4vtoYR9mMKISfATlYnq5yZlX7qf9CcPOxxxOAvFuDd Mq/URw2B1q12lXcQbUfJKwb1R1phtOGcyk82F02xaGzt7udpVzxYw3tv/HC3b4jHO8nrAE nCYSjfVKTrGBxdrhhTv7jGeCs42RvUicO9X66Sh5OfyOefN65MP0NpPrJzQc4Q== From: Paul Kocialkowski To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] drm/logicvc: Define max dimensions from USHRT_MAX Date: Wed, 25 Oct 2023 15:09:46 +0200 Message-ID: <20231025130946.119957-2-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231025130946.119957-1-paul.kocialkowski@bootlin.com> References: <20231025130946.119957-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: paul.kocialkowski@bootlin.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Kocialkowski , Dan Carpenter , Maxime Ripard Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use the existing macro instead of redefining it. Signed-off-by: Paul Kocialkowski --- 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