Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1697145ybh; Tue, 14 Jul 2020 05:06:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZLcT8FaaiO5V37YgnqbR5m8PtXcFjk81RFmR+Vx166GjEhMTQRoQvWCvHgVI2GXV6PNRt X-Received: by 2002:a50:d0dc:: with SMTP id g28mr4007926edf.169.1594728399281; Tue, 14 Jul 2020 05:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594728399; cv=none; d=google.com; s=arc-20160816; b=it+h0XmSC1NFxU7VuclE1beYsV/0pig20JqQ8kLMEC8DIqlca4TMY99A6JlcQgBTu8 Y8xhRN3DSWvpPcXxiHsCwnXrIKemjbJ1/06qnZKiDsb245mHpC2FjwE/kGHtagDDTqXB ZLM6PQX5kAzr9daZud3G+bXrdY1yQmEGbFwpMFAX53P0TvhUXnvRDNJLolUDIQMOGn/K FSRH/376DfvxooOWCHXDS4rGzOML+7iAXoJ2ke0i+RYinDKgKqkxJeDn9Fe+oWU085EB 1dd3EkiisH+8+IyjtO/afDjRW3aga/9tP7tbahXs+Ak4tSeYiXrug9LoEE96CVjM1tX8 LBpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=uMYBmpg7+L9VLu7q0MTELbcPj+atnwLdSYXLgn9FCYk=; b=vG/KehuoKy0VoBbM6h4C/8PrrnTh1c9i67ugeSBnQ75rtqjBMACawENSajhs1rUqvi YkjDep5GFs8OcZtyCYathZCQoM0Vx4yBMRuscDP+nuMb0NWspgSP0tt5UB8zKlqw7PSo mBKnv6BxOIHIXDgeTYcqgTZ0EMKALELn7Nr8Lq+whCkk/J9aF/v5eqwrBJIwTNY2nCca u4EwxEvvbE97PpXBd9Vut2MduXDeBE4nHNoHaQhyCkvXmwkhspwo8q9C3J+qVB4GVMPR 0IGxshfPD1lku2hfl7dJFnQxHVLcGmpdP5mv9AYmBWNz3mFvyCka5vaNYKVgBK/KcX8s x3bw== 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=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si10392338ejp.681.2020.07.14.05.06.15; Tue, 14 Jul 2020 05:06:39 -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; 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=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728232AbgGNMCp (ORCPT + 99 others); Tue, 14 Jul 2020 08:02:45 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:52617 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728121AbgGNMCS (ORCPT ); Tue, 14 Jul 2020 08:02:18 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with SMTP; 14 Jul 2020 15:02:14 +0300 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 06EC25dj004353; Tue, 14 Jul 2020 15:02:14 +0300 From: Vadim Pasternak To: andy@infradead.org, dvhart@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Vadim Pasternak Subject: [PATCH platform-next v2 06/11] platform_data/mlxreg: Add support for complex attributes Date: Tue, 14 Jul 2020 15:01:58 +0300 Message-Id: <20200714120203.10352-7-vadimp@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200714120203.10352-1-vadimp@mellanox.com> References: <20200714120203.10352-1-vadimp@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new field 'regnum' to the structure 'mlxreg_core_data' to specify the number of registers occupied by multi-register attribute. Signed-off-by: Vadim Pasternak --- include/linux/platform_data/mlxreg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h index b8da8aef2446..a2adc3ad45f2 100644 --- a/include/linux/platform_data/mlxreg.h +++ b/include/linux/platform_data/mlxreg.h @@ -80,6 +80,7 @@ struct mlxreg_hotplug_device { * @hpdev - hotplug device data; * @health_cntr: dynamic device health indication counter; * @attached: true if device has been attached after good health indication; + * @regnum: number of registers occupied by multi-register attribute; */ struct mlxreg_core_data { char label[MLXREG_CORE_LABEL_MAX_SIZE]; @@ -92,6 +93,7 @@ struct mlxreg_core_data { struct mlxreg_hotplug_device hpdev; u8 health_cntr; bool attached; + u8 regnum; }; /** -- 2.11.0