Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2994183rdb; Tue, 6 Feb 2024 04:16:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLfSoh7lgaW4U01P9+wI8PWeFUGsliAqYT/PPh7pdm2Kq2gGo1Kzl50kNJaru4BeAhOH37 X-Received: by 2002:a05:6512:3d29:b0:511:61ab:406e with SMTP id d41-20020a0565123d2900b0051161ab406emr263072lfv.28.1707221782851; Tue, 06 Feb 2024 04:16:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707221782; cv=pass; d=google.com; s=arc-20160816; b=ei04MAAYv/o2UAhnYwcdC2V2X5W1SpUHVwrnzwtLwXLxzR1z/1QIgnUFysJmFCh7rk qECZIjYzZdovWkmtLmOe7Nn4GGwRbvRIyE7xeFhgMzrlB54KDoO0UeR4ZUTFGWb1ndJD B0QqEc0ec+5dIgv6uAaYljX8cjE+30+vXUuwNdc9HJ/378GlqRda96FkAsatD/eE9+f+ tb/jK8RE1Me5WVlCcSTgxiK9/v5WkSO3SuHpzRJwkDj4kTdS2aOv0UdQtU3JCQBCJQGL SMGWPYqPZISrkpvJpJKTWnzpQMI8aiczfI7ZchPWqUC9HCSgUcVJWhHgrffje03Ll8vd pmhA== 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=9e5E/6stmH9TAgdXBdh5tN5w0k+A0ggfgLIYiGLAIP4=; fh=InG9o8z2lYYFK1rJqrp7TprdwREw//VSvJEYvHRH5uU=; b=0IYeNrJ4pomSvyYoBmlmWuoXy0AoiKicssYyeNYAQDqI2mEBb2y5dHThvKlUrEvtP6 4BVBD+WESitrJXbGbJQYgZfbx3jx2XS6GorIDSzVKrvgTdROiPmXGektEs+8Vo5Qxwos a6cIffjiUPtrTIBP04AFXV/sHCbLVkJcagKxXD6PZB03iDPDx4ZhdUU7lWnpdWyHRZLV moumuYWDkU5pL6pLaFui9zee9ku1tDcI1O9MU9mlra26kpmx5FuWhZU/HgFTVm6j6d8A ygd1g+AkPbRmR644aCd2Lgq2NJbcy8YVODUz0beM4kpof4aYYsxHqMGmC2wqpt4bk2rV oR6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SHK1PNlO; 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-54863-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54863-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; AJvYcCUigQ3bNzgrdaygcqCbXcUPg0ogAdDnP7dNpwubh7K21l1FDCEBbL4Y12oNelhRvmSr5klXj04H2dzYqs5LyhOGwlYTp3s2uhG2tpvXqA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bo26-20020a0564020b3a00b00560b78ed08bsi279197edb.574.2024.02.06.04.16.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 04:16:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54863-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SHK1PNlO; 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-54863-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54863-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 D831D1F24781 for ; Tue, 6 Feb 2024 12:11:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42997130E47; Tue, 6 Feb 2024 12:08:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="SHK1PNlO" 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 D52D1130AC1 for ; Tue, 6 Feb 2024 12:08:00 +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=1707221289; cv=none; b=M/eVbF2Drh43gIUOJE5fzhAwnziKZTQA3bGEzR4c9UgBXIZ8twDKPDqj51sH2edXZCnTkNUfghMomwPsbioL7KFqYa1GCyHAGRGTfAcDjriRLuBsaM7h4xc2mN6s9bDzVFeliWrQnWxctFWJybFR0jfEouB1ri4Uuk+zLUO4+XE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707221289; c=relaxed/simple; bh=mccYyS90vn45+hq6oaGnHGsB4mCj/z4kAT02aNdMkKA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C5Tp94eYomSk4p8CQvKZI4hrIyH+wBxErXu07KerBLDgicI1/votE75i1aQsNVdYIzTUk6QZhC2mFVByZflueQwkXdiHr6x+idaeO+Q8z+6KOcLcTwUTCiKvSvJIyAqveMfpyw2NZHInjyT/zb74W9x50FiUxwXGD3rlwWKQoig= 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=SHK1PNlO; 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=1707221277; bh=mccYyS90vn45+hq6oaGnHGsB4mCj/z4kAT02aNdMkKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SHK1PNlOMVl1mXpVM4zFaFL9oQ/LgGbvtTDCS5/yt4hwbtDPOUdEicpGaGzGgVFwO KdtSHY+MzWrHkV5RPGAB9VoXDDWgELLXzoTMh1q9RA+EbkKFAqbwvElpCNRhSBPmSB qz/GsWHu64p89/aHJqlXt84muFf5rSVBavjj0o/bXPxb5uJE/+EkeuNrvx2tUI/BJP CoMukns/Iwp4wuvPKDEIdigpZKT/rC1jO1PgUNp+06rdR/78P3Lo92aXskLrdEav2a GL8xXRfa2jdrah9w2cKp8rhWspsIV1NmC7HDC1++5TF2+IucLsxI+Axb+k3KCNO1eV YN0ljG2y1gWxw== 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 D71B83782080; Tue, 6 Feb 2024 12:07:56 +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 v4 5/9] drm/mediatek: dsi: Replace open-coded instance of HZ_PER_MHZ Date: Tue, 6 Feb 2024 13:07:44 +0100 Message-ID: <20240206120748.136610-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240206120748.136610-1-angelogioacchino.delregno@collabora.com> References: <20240206120748.136610-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 26c221737387..5e383ca00ba8 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