Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp360001rdh; Wed, 7 Feb 2024 07:00:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZjQgKSpeYOMud0XAFWxH3guJ6W2f/I8Rkx/sJqcvnSucp7CExY9KOS/yjUH4FIOdSqx8A62y49L5PaPtp1Ltt/1GioTUwZh0Iid2qRw== X-Google-Smtp-Source: AGHT+IHQIjUt45Ov05uJC9FFWMmnCu9IXnFNGI7v2qnS8paxRQ2gQlAmZjvc/5n9TkK+W+lqMbYb X-Received: by 2002:a05:6a21:6d9d:b0:19e:4e80:3616 with SMTP id wl29-20020a056a216d9d00b0019e4e803616mr5947102pzb.49.1707318000771; Wed, 07 Feb 2024 07:00:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707318000; cv=pass; d=google.com; s=arc-20160816; b=0ed428cttH7R0HcHi5oNf0sE3VcxhF5JlHKy9txtkCsK35WLowmXIovLnTAXh1fl+X dlBWqKnr9P5wyXjKAUVtYS3Xl1A9J4H6JC6dv/VIdA2vroEqtFj/bd4hFx+lwVW4RTiU odS04CF2BLxcDTOWv8oqFMPhSKqvRTLvb9i4br1eLZGeio8vueG/OInbgTdI9thgqHfE 2Zq+6GXJ13g6OH8vvpoO3S9DFQbm7207Gizk232O2CU+nb1Fzx0p/W+wKt4haT4L5yHx N+duPRhSSGzQRMcMAkyat5lpx6UF60sIsF/Ylpo3FZiHR05IoauvOmx2u3xhH7TxJwzB HmHw== 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=/JogCYJM62udzVwF90i+MXqQdcdBnCXj8P/xacH64kU=; fh=wgfIX+6IJOOdwJY37sUE6FaJaQGiQrIVE7+0z9g4ulY=; b=VtwQ6PkYrOJVKDenYRoA143MrEXCC7eXW+nRXC/+85IiER7IoAHV3FOdUOdgwxf3IE esCojmKlYRAzXEeLMYlueh7P3ONeR5NSXy5RgBhDrtYMI1It7lDCxW+kis1VdmH7uPBj r0SlAmOWCqU20+57J8wEPECU/KPD2yn3NrRz6BkN5JrOsFNe0VvFRt94AVTVNvs9pUkh iL0/iJyRnHaRGoJEygEvgyhcNCb8aeFp8ViKV8tgcd2qEEeJ39QI8ijmaJ2mdBt3X0Cd MDeoLBGZgNAERmNv+S8rAqwT6+4f+7drVI9oNKQ5krucfapnOvl4+M5XUsnNi1fcaeN7 XMsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=quFidrzv; 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-56664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56664-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCX/nfLOF2GmpnfXBD6sT0oMT/2igsfbPgx/MqhiUzzu8rWN7/mBXZjXPqixqKcI7IOLM/1PtMNhzKcBouQZuqkll8s7USe2a6HlcMW48g== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t5-20020a170902dcc500b001d9d29d4288si1616337pll.630.2024.02.07.07.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 07:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=quFidrzv; 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-56664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56664-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A2ED2B20FC1 for ; Wed, 7 Feb 2024 14:54:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 983CD80029; Wed, 7 Feb 2024 14:53:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="quFidrzv" 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 5B1CA7FBA2 for ; Wed, 7 Feb 2024 14:53:21 +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=1707317602; cv=none; b=NYEujJQum5+JV+NdCSUaNZTLTh3YOGLqin4IihvSRXlcZSNGk9chMk0yPDFzZHAwrLptaCSoWugjzca9oXG0stytMzp8FGTAfFRlmyWWttL+6OPwNK6oV1/TI+CIOkMjySm6v7uezCwwT8iiZsm8Kmw9FDY5NtwHsIBl5Sel4mM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707317602; c=relaxed/simple; bh=FiS8mUqacAQe89zDNq0f1XThl37jG415BRlGEjthz3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ip3DlXOMzTAnb1gMmsbtM9XdXjMW/HyO9CmCkPzfGq1vd/MitR6pD+DoPhxPuA6LkR5JdSc87G5qUuNJKVyvHk7yibS6DXaB+yAub1PJWs1X6a/LgPsBFGrqsS9fYaMfx66Xf07DvWrXGOxSe4t4i0Y8jLWxHkg+T1aZOc+h15I= 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=quFidrzv; 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=1707317599; bh=FiS8mUqacAQe89zDNq0f1XThl37jG415BRlGEjthz3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=quFidrzvgOMNyNGO8uk50aUtnYd/jjBrVroNsjFupIrKXJjidt4USkkWePzqEfV3z uaWkKcZGWbrWcijUHy5OBKbH8Kz+xByeHUd/Plb51UVr77D75e/eZ5OKIArE6yhmbW pEwB0wapDN2Y0SYh9pmiGvQi9Cmia/Xe6BoKq0rfagkSuux1xyb4yxk7bxJc4ohI/o U1Bc5EA5vSuWqrY7bN6N7mkkf2VX9iEQnGvlLXPY6ZfH7PLjbqhlep4emvb1z/cPYM DwyOxAjh/YIgf7qlWuJlt4huPJVrDpZbLGQIqHBDpadlHmUs36VUth9KJR75b/LcOo 23ci/V5sLA3fA== 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 E3A35378207B; Wed, 7 Feb 2024 14:53:18 +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, Alexandre Mergnat Subject: [PATCH v5 5/9] drm/mediatek: dsi: Replace open-coded instance of HZ_PER_MHZ Date: Wed, 7 Feb 2024 15:53:03 +0100 Message-ID: <20240207145307.1626009-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240207145307.1626009-1-angelogioacchino.delregno@collabora.com> References: <20240207145307.1626009-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. Reviewed-by: Alexandre Mergnat 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 a330bb94c44a..52758cab0abf 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