Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2610445pxb; Sun, 17 Oct 2021 20:25:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSxA+W86N5trf/dM0ERKjuNp/Rj9Msad6hcAaC7SG0ofQc/SO0/LZ478EMtyv+uGiZtrsI X-Received: by 2002:a17:90a:b783:: with SMTP id m3mr45363587pjr.183.1634527549647; Sun, 17 Oct 2021 20:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634527549; cv=none; d=google.com; s=arc-20160816; b=1FkVwozHGx7CPN2EBKoPNl2xMlgE+cNMOGWP6Wa3u0PiSaXEh5wNO00zVqbqJPeex2 Zm4UlG+9L8w5WfzEIJHsdHo4NdhrVqC79oinRw65cs3d2s+GT8dRsOwBTCc4VQrjavQ+ mTOlxGMDztK95uzKvHYzKXnt3vHyCKY7KRNnUtMQrnc3UmuIMmJz6sAZhm9nFAKaDHuQ PaLz2DcaKOO5y/JauRDgDIR9o/AB9JlgCjIQ9pP1SpItetgJshDbqJ5LpDo8En7z3DaI tx/RpJvVhbKs+Ca/v0Fw4wEW+Hqc3Uxt0r80cBd8AbfPensA2JFx9mj7ZZKRZiyCb7cv ZVCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=ea7oQlIojI/CGgtbObieSmBoMcrvgHikxIPi+z+qGZo=; b=CNygF4Kv4RPRRd/0V/b3OXGqat7CWaOkp5WkDFgVjR6HvR6wWCWCIT/eImz21Klwmi +r96PeIadTJoyeYikSRhfdJL9RW7fGX3RgPWbGVEsIW+BKnj0sJz7gmjzyajHm5/MAqy +fmQsS9x5Ul3sD8GOmBXwIo5hQ4aq4zHK03EwurfNYbYuTwmOv2Whq58LariWqrn0EZd z8rBtFOYKjBuGTjHLAvPk/JywzW+WoYw+GO815W6WP5qPgRckJ/a4N5TN68Uu5J1Cmus 0jHuvjOdyfUXGOZrWTohIaZbfJH9dRb3V6cMkpMgmsaCfm3SnOCMtZBFvWQAvVt+a8Uf wOxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CyyA9mgG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si4281096pfh.257.2021.10.17.20.25.37; Sun, 17 Oct 2021 20:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CyyA9mgG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239542AbhJPCPi (ORCPT + 98 others); Fri, 15 Oct 2021 22:15:38 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44174 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232812AbhJPCPf (ORCPT ); Fri, 15 Oct 2021 22:15:35 -0400 X-UUID: 54cbac1625e440ccaad6ae10a489fec2-20211016 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=ea7oQlIojI/CGgtbObieSmBoMcrvgHikxIPi+z+qGZo=; b=CyyA9mgGRTtgLaaqSGtWXjHj02ijqysJmbrlSK677JNC3lw713X65BJFHeWIqygS4z7gVojbgQ4hXq7srZ/q5e5IIyLmccYsXXLvTnzAczpLTGtMWOKHTunznLmYkKAOruB8AaBFAfyaf14OMmUNS6vkYVfLXpY8XACF3KOVFu0=; X-UUID: 54cbac1625e440ccaad6ae10a489fec2-20211016 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 207952531; Sat, 16 Oct 2021 10:13:23 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Sat, 16 Oct 2021 10:13:22 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 16 Oct 2021 10:13:21 +0800 Message-ID: <5e411c148ac44d5d970b6fba8861f63434f83ec5.camel@mediatek.com> Subject: Re: [PATCH] memory: mtk-smi: Use ARRAY_SIZE to define MTK_SMI_CLK_NR_MAX From: Yong Wu To: AngeloGioacchino Del Regno , CC: , , , Date: Sat, 16 Oct 2021 10:13:21 +0800 In-Reply-To: <20211015151557.510726-1-angelogioacchino.delregno@collabora.com> References: <20211015151557.510726-1-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIxLTEwLTE1IGF0IDE3OjE1ICswMjAwLCBBbmdlbG9HaW9hY2NoaW5vIERlbCBS ZWdubyB3cm90ZToNCj4gVGhpcyBkZWZpbml0aW9uIGlzIHRpZWQgdG8gdGh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