Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9112610pxu; Mon, 28 Dec 2020 06:59:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdauIvKNX5Ik980wZzjjCehglOq/cSDfCMavfMc6+HIuEbVulNO/3m0KcZExNNqga07nKs X-Received: by 2002:a05:6402:139a:: with SMTP id b26mr42704910edv.47.1609167558052; Mon, 28 Dec 2020 06:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167558; cv=none; d=google.com; s=arc-20160816; b=j98CeppbD7pKCYnIzTijVOAMBuO1iUBSjpPHz+AXakT+5YWEZ1yQ5fboxWhMINFTe/ aKayPQQDnkpqt76Pfpz/8KH42U1eCIgYd+JN+AANalousxQ7h9umj1N4PVDfLgtxXCQn Utmn99exdvK6LnNPZdqyCnaQioOkhOBbZadwNFkM8xoBig/fiL1kEml1+Op3YZa0WMyY mkwItvYr0idwzuPoCPvZMlrurUXICC+vEYr8rX0OAcWKg+pes6Q52fGmx7ffdFPnIf6q 9+h2cjV/fThrfC1HHgkcTVMVfeMxWuxf3g7msgq07AUgbulytNhurTj9a172KDALfslU kA8w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BFeuFq3F/a0le7Hv30iPV2/Cg7LsVX243fVM+nR/2k8=; b=S7254u0kWu6bTfTGzflQgbnoSQ3bnlNyXpCIvnH7JrNOwuv5VNm95wRaWgffiIgGHo ylbx7mk7KkHflOuabdP4E+9JbfSKDjGNwP9FJftYfgO/61Nxge042MB/WWUfwuPeKSyB tuEkqPp1eAVBVX+x/HojBnxYtD3dZ85LZnOJ4Lbpps24amxv4doSC+IT69W8Z3XGdSfl zt6n/l0ioCXpijjqilvR2z8h4LJSCaKV2sZOSrbwHXcmY9iX9VEirn7lLLDLtaIhWBE+ CpI2MDv2fusTQDq9OsAbLZ+QQ5GtJJGyU+JzAR68IS7JsKHpqijM/Jw34pQ6Gzs4Fqh4 yk8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ssqlJRFz; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn5si19226725ejc.533.2020.12.28.06.58.55; Mon, 28 Dec 2020 06:59:18 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=ssqlJRFz; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440702AbgL1O4b (ORCPT + 99 others); Mon, 28 Dec 2020 09:56:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:51980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441249AbgL1OQr (ORCPT ); Mon, 28 Dec 2020 09:16:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 673AD229C5; Mon, 28 Dec 2020 14:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164967; bh=U2wwaEzDWBIk2SyEdeQYW9xWQFkmzgDyOBRrc9IR9MM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ssqlJRFz3orNR0i84hy3Tjgu3QGkiUoW6fD9kHVrfVTaT+68ILXYkbgQ9Nd4W98Ak nJi7ziZmXZBQTd1Q3Fb1dmTfYllpEzxrfN/8dMpkm2ZBQk+dP8+e54phyZLlXUSinq T2tzzpyE/p1TjKwmh4n18dhCm6UVkZLnR+517/Rw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vadim Pasternak , Hans de Goede , Sasha Levin Subject: [PATCH 5.10 362/717] platform/x86: mlx-platform: Fix item counter assignment for MSN2700/ComEx system Date: Mon, 28 Dec 2020 13:46:00 +0100 Message-Id: <20201228125038.357285184@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vadim Pasternak [ Upstream commit cf791774a16caf87b0e4c0c55b82979bad0b6c01 ] Fix array names to match assignments for data items and data items counter in 'mlxplat_mlxcpld_comex_items' structure for: .data = mlxplat_mlxcpld_default_pwr_items_data, .count = ARRAY_SIZE(mlxplat_mlxcpld_pwr), and .data = mlxplat_mlxcpld_default_fan_items_data, .count = ARRAY_SIZE(mlxplat_mlxcpld_fan), Replace: - 'mlxplat_mlxcpld_pwr' by 'mlxplat_mlxcpld_default_pwr_items_data' for ARRAY_SIZE() calculation. - 'mlxplat_mlxcpld_fan' by 'mlxplat_mlxcpld_default_fan_items_data' for ARRAY_SIZE() calculation. Fixes: bdd6e155e0d6 ("platform/x86: mlx-platform: Add support for new system type") Signed-off-by: Vadim Pasternak Link: https://lore.kernel.org/r/20201207174745.22889-3-vadimp@nvidia.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/mlx-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 902424e06180c..be8cb880de596 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -504,7 +504,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_comex_items[] = { .aggr_mask = MLXPLAT_CPLD_AGGR_MASK_CARRIER, .reg = MLXPLAT_CPLD_LPC_REG_PWR_OFFSET, .mask = MLXPLAT_CPLD_PWR_MASK, - .count = ARRAY_SIZE(mlxplat_mlxcpld_pwr), + .count = ARRAY_SIZE(mlxplat_mlxcpld_default_pwr_items_data), .inversed = 0, .health = false, }, @@ -513,7 +513,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_comex_items[] = { .aggr_mask = MLXPLAT_CPLD_AGGR_MASK_CARRIER, .reg = MLXPLAT_CPLD_LPC_REG_FAN_OFFSET, .mask = MLXPLAT_CPLD_FAN_MASK, - .count = ARRAY_SIZE(mlxplat_mlxcpld_fan), + .count = ARRAY_SIZE(mlxplat_mlxcpld_default_fan_items_data), .inversed = 1, .health = false, }, -- 2.27.0