Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2573832pxu; Mon, 7 Dec 2020 09:51:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtWt9y6p/sDSWdw+gSWgcF4RqoOUExpCCBAUSDCISDAcBs9EbakJhOp6RdmHYfA+nrEfby X-Received: by 2002:aa7:c3d3:: with SMTP id l19mr5492575edr.366.1607363499491; Mon, 07 Dec 2020 09:51:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607363499; cv=none; d=google.com; s=arc-20160816; b=0qk70Y1VwJycYcwfUoQpvZM7fA5dr5z23g+zBc4avaGz32CmRw8agcS0IxIDf3fysI OxRlnk/1OjG6J6lsgnL8mGedvHqaQmPWl3SqBAMotynldb4nkHlfVyLE031vnhwFd2UD ZRSPSx8Gb6K1WFFIXD2frPLrXRBWG6fos+caelYAQixUmniuyistY7fDU8X6KBBcGQ8z 9Dly3r+/RUz96vpkhZ1FsPD/AbWGkvFOg/HpaEMWzMnXA0c6BYQOiO52+nCFKrPDqXzh VBCvTwRuQvv1qwlmKh0Oi2iaHRRlyJ16aiT5vjn3OsrD9HQu02chUAGYUxd1WPP6Svii /n9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=dqlhPaQu4a/52LvEnERDHvcBCTplOLn173d0TNI2I1U=; b=dzQ3f3xhE4MQ3EC5quVbbAce196TWClr2b2XRLqvfOP/I4crdjGeP3xJTdrVyP6aQu GP5IM/Bcq9hJXib3gd3ly4+oZGhpXpWjv/wOKTWhrAjdUtv5AgWdFVkNX/WjYH4jbPpS jv0OcdsfAfbfN1QQEcBJMpQp1q81hcneYob2el1VGDxTUZnf0dCxLxFRwELLTaJpSTBG D9VOMKRsGsSRCWgEX59zaj5QrzdAdxyT2licQKtQy2dfAIzbaBaZEfmlHNCvpJKsFmNr 2fx+BM/Jv76odCRgHDFGcOM/zg5DpzG57ohp0MXQs/62S1eOZG0PwCqpwE+lqdiIId6K 9geA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si9114866edj.459.2020.12.07.09.51.15; Mon, 07 Dec 2020 09:51:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726379AbgLGRsj (ORCPT + 99 others); Mon, 7 Dec 2020 12:48:39 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:58366 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726265AbgLGRsi (ORCPT ); Mon, 7 Dec 2020 12:48:38 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@nvidia.com) with SMTP; 7 Dec 2020 19:47:48 +0200 Received: from r-build-lowlevel.mtr.labs.mlnx. (r-build-lowlevel.mtr.labs.mlnx [10.209.0.190]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0B7Hll1a001902; Mon, 7 Dec 2020 19:47:48 +0200 From: Vadim Pasternak To: andy@infradead.org, hdegoede@redhat.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Vadim Pasternak Subject: [PATCH platform 2/2] platform/x86: mlx-platform: Fix item counter assignment for MSN2700/ComEx system Date: Mon, 7 Dec 2020 19:47:45 +0200 Message-Id: <20201207174745.22889-3-vadimp@nvidia.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20201207174745.22889-1-vadimp@nvidia.com> References: <20201207174745.22889-1-vadimp@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 b30ebd17f3de..8bce3da32a42 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -495,7 +495,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, }, @@ -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_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.11.0