Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9273905pxu; Mon, 28 Dec 2020 11:04:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwj275PPLu+qZy/Z9CkzXov/+ihUEq2ckWptEaF55r0n72of+2NbRH/OjEhHhM5xjF4yEEW X-Received: by 2002:a17:906:3ac8:: with SMTP id z8mr29390154ejd.273.1609182298092; Mon, 28 Dec 2020 11:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609182298; cv=none; d=google.com; s=arc-20160816; b=wqi+PMsWnffLewNOqah3EhF7o2s75jjNFV0LkNK+jeXPB26TWJe11S1orFdlpYVMcI TRGtHKhkbwMRkk6P9r460nn9iru8Zg3fdoqf3bGnGJ/CdXpdDupfwGXHr/q2Z6v5a1qk IBL2lUaJ4zA7HQKkI5zD4hFuJsICxgRdy452NJUTUi2tpjTWvWuqpiwmHTU9JvGL8+UH tDET5Hrnz/nA2coANX8lND6H802wA/9MHpRZFrqSDjg2gMDm/d/MpmFjQbRm6erFMe6w xmRcTUryjuQkuJUfkqI9m0CuGjNKlJSN87SqTvNzFvDPoylg20NKI8J+D0Q2ftPQ3V9S ANQQ== 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=Z59kgz37rIUxvr5FiCNjc7xAwocTUzxgA+C0AqLsEq8=; b=Su8VUCGAeEYe0eFyafiEYI0U7e1wTxPP9F38nh/NoizEaEQYb4ppL+e8UpXXCIYeX4 V0EXAn64qkLrgVh9sUm5Mc37U+7HQpygGvzrbScquUwITAECikOab2wUVTZqcAK+wsOY XVkUSGVvrZq/pVS3ZKEwS4GVn76DDtr1PDPfNrnn5MtHe5CwVqJftY6mMr7pcHR9bzmu rz92YICSx9vNAjh4nta8/2PzVshqzZ5dqly69GRTGa7aFUtIcGxPxMf1JbZqh6Z0PFkG tAhQ4R8wbZW7+XmMRV5cvxDFC/6wCq/OAIrns2eqGmZnecYjECeqaVYsev6w6TqZ7kp9 kjrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s9uhXhFs; 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 w2si18431761edx.591.2020.12.28.11.04.36; Mon, 28 Dec 2020 11:04:58 -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=s9uhXhFs; 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 S2406331AbgL1Nu0 (ORCPT + 99 others); Mon, 28 Dec 2020 08:50:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:51712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406314AbgL1NuW (ORCPT ); Mon, 28 Dec 2020 08:50:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C882720715; Mon, 28 Dec 2020 13:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609163407; bh=3kH8G1S0zb0Zmt4rApJclmEE26nhfudDk2YtEQm9L5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s9uhXhFsOaMYeQOpoepuUyqR+taaphaTt8HDWnZWFa1Q+756goB7L/r0w/nepmHCW zyVX/hI3bh9a69W64dF9HSZXKIpY7x9eGx5iwCtjGHW6ZQ2wTjVxsxGx/lKcvIDHRx Os8m0x6ZQ+GU4MWhdkZP52oQbY6VKH+MXrb2Ct8w= 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.4 244/453] platform/x86: mlx-platform: Fix item counter assignment for MSN2700, MSN24xx systems Date: Mon, 28 Dec 2020 13:48:00 +0100 Message-Id: <20201228124948.966635631@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124937.240114599@linuxfoundation.org> References: <20201228124937.240114599@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 ba4939f1dd46dde08c2f9b9d7ac86ed3ea7ead86 ] Fix array names to match assignments for data items and data items counter in 'mlxplat_mlxcpld_default_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: c6acad68eb2d ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface") Signed-off-by: Vadim Pasternak Link: https://lore.kernel.org/r/20201207174745.22889-2-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 4b3d94c4a939a..acb094ddf8e61 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -355,7 +355,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_default_items[] = { .aggr_mask = MLXPLAT_CPLD_AGGR_PWR_MASK_DEF, .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, }, @@ -364,7 +364,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_default_items[] = { .aggr_mask = MLXPLAT_CPLD_AGGR_FAN_MASK_DEF, .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