Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1594045rdb; Wed, 31 Jan 2024 03:35:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdQWvqdGxlS7fhkuPkP9/ntUpJf0NyectObHGofr+FVfBaSMZD62mvIdVYYuhRTaZ9be4g X-Received: by 2002:a17:906:e49:b0:a36:55e8:ea40 with SMTP id q9-20020a1709060e4900b00a3655e8ea40mr738309eji.41.1706700943220; Wed, 31 Jan 2024 03:35:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706700943; cv=pass; d=google.com; s=arc-20160816; b=UfL/5rNZJQ9Vg/u4BDzbINxnGdJavkysjkPchKVGT6u2rJe1AzwU6cTYpvbgs60G74 h19kjUKLYt4vznmKVy8koXArMe0DmA1vCSnf+Ks/XlP5UCNe4VQvkH3o2ZLoIijSWZfi Uhphx8h0znEpmRQF8hXiotPawYKtD+GHC2IpyITCVukGXfpqZ+QMQ8tLwssz9skEu3dL wlx8V4zw0hvjq9imbr7bzP31QCD5cVTDvnP/wZUKNdwDGt4Tljn0TnIowbzFu+pbUn/P L1wUzPr0M9poEWs3Va7a45t1GrCSitxpzmJdfKpHHtuwF8CuNzyU4OhQ/sM6EMKUrirq 656Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FdWfbaioGYtrLXt4q9whTZECZW+rVOFh54QnV0U1+K4=; fh=t6dh+h69D3QGhWLVYoFWooPc42fTlPj3E51ZXKySHio=; b=x6wwrgLIar+nkJoCO2C/ZVRWu/67bRyzAmBGHYFwgV+stjTPG/6LjhDwwH5unRG9oj lB9YKfU8Dpr2ST8AZhXVVubX/EfYlnXaTnn5izkJ7rJ+WFUA1YIvRxH7FroKqh7tUHuv qHcLT+7ZOBdu+UGh2QktTEgKsLnThhdvltfFQ5BV73Vkz/YFCMWCmJWgg9nbOnnLfFxb c2VGOvc+vaio8TWIITSgwrSaUSoJDLVjE4hT+igTtIi/XV4ox4uYAhtd1jv3JOE7MIfQ PIG+QMMVkbPJE3hrb+KVAjVBENu05g7/e6aoMRtcCGq8zD1QjhBH0rAuz4eIYzjye1aO w1PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=5dr1dfI9; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-46358-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCXnLaFHnXy081CmYcIOdXmTN3PG2ZUGSaa1DXOSiJ9jgLEckSC5I2xABx8c6ZC3TuoxXDhUk5EM47vH9o40esqC4Tq58iQwqRITq5xELA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ef7-20020a17090697c700b00a316e395165si5215235ejb.529.2024.01.31.03.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:35:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46358-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=5dr1dfI9; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-46358-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D60351F2BFCA for ; Wed, 31 Jan 2024 11:35:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDC6279930; Wed, 31 Jan 2024 11:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="5dr1dfI9" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C4CA76906 for ; Wed, 31 Jan 2024 11:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706700888; cv=none; b=ijHMLC+fIGZnhgUi4pR3aSLlRcIs20WFlmHtuMmNBVAemGu9cGYPavG8jUgFEzDTo7NGjRVgpAF6eFR5L8FIWor2VlHP9LJc70kFm241SHh8DcphDVapP9OTXLVyxdY+ZpBDZd2a3z73ha8jvth2JD9nuy1UBE/sHInIXbUcA4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706700888; c=relaxed/simple; bh=zbzMnTpoZSIYlb8jiO31bv5oIKyPpIebAKdElYE+AVE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OdW2pgDT5sua1NOma1Z+Yf8Mwc5cJbQ9T3BLxeFny3W9Xnwi7/YC2gcA5/QWxMMXiuA5KPAgdYB7HPlRa/hsghgxnMefg7OwKGP+s2F9phgM5YJZUepwBUIe3t2xYaM1ueswVOg9owohJXJDqAchJEtUuIErEZpK45KBih3gG5M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=5dr1dfI9; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706700884; bh=zbzMnTpoZSIYlb8jiO31bv5oIKyPpIebAKdElYE+AVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=5dr1dfI92989qfXEE0vyDLv888ezBDSodGehkNXNu0kz/KOLNI2QAPbV94iem1CV7 1vb+GpQyeTrowvnxj+NHPGxupHSIFm9halBaUDvBp+FjeD4AiKxwk1yFbm1dlWIIas 3qUGHF7gp5zBt7P1ubh4rZ4YI5FISupAKiOIYlW4H7KpKp2huSfWFrCsXRHFtTi/WL oCIopRbWxre6xzV5+CPcruTcOSPt1ezSlcARcAYaUnQL0gAUbfe09BU1mSJ+0ViV1z bFfUCRJXYpMlcRFQ2MiwVynywKnp8KsUxzo2Zbd6NqXORJOwCij/MZgeoPmGmCpN5n SVEoPacPM0w9Q== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 17D033782084; Wed, 31 Jan 2024 11:34:44 +0000 (UTC) From: AngeloGioacchino Del Regno To: chunkuang.hu@kernel.org Cc: fshao@chromium.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH v3 4/7] drm/mediatek: dsi: Replace open-coded instance of HZ_PER_MHZ Date: Wed, 31 Jan 2024 12:34:31 +0100 Message-ID: <20240131113434.241929-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240131113434.241929-1-angelogioacchino.delregno@collabora.com> References: <20240131113434.241929-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In mtk_dsi_phy_timconfig(), we're dividing the `data_rate` variable, expressed in Hz to retrieve a value in MHz: instead of open-coding, use the HZ_PER_MHZ definition, available in linux/units.h. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index cba63de5092d..cc625febe6c8 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -13,6 +13,7 @@ #include #include #include +#include #include