Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp326697ybg; Mon, 1 Jun 2020 02:22:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYifVhB60+Q5kAUC6zCwyL09Vfs+mcgqUJQLod+ZTg8j9JdSwExc6/b07gg178lnXdCMYt X-Received: by 2002:a17:906:9157:: with SMTP id y23mr19683587ejw.0.1591003343983; Mon, 01 Jun 2020 02:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591003343; cv=none; d=google.com; s=arc-20160816; b=weK0DugWHKCFaasHTHHRGHH453SnBNqM5YWyevfGO03RrjZ4MHyE6Pwk2bLHehrRiw nmIf5l0Fmf/lKKB5MTUyFBATM2cCpsGo1hz1uMa5KYCalDTj6mCjkpeXwIRzWT6S7qEa uAaLIgKWjSfsyeg8sTHQnpbY4WizVogMNecLU15dAC1kXr1JfJWlsYGWVjB33DlYFxkz DYCGYrbu/amNKuOu7nV2hfyQvxyphZbxtT/HkxzV+rs6ma9QHB4HhwIF1VaJMeNCTSNs HMxmY86aRBEY5xlK4bBSFWuGAZp9OmJl6DA4AFcYA3bzhMR3BaiWYHUKIcr8ne7gO8oy d6kQ== 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=YVzijwhA+fQ8V3Jvm2yxazSoC3ds1httk73Ao7tXpplzpS+2PGsqP5WN+RSSe7alHU KkcxECWgpcB7tAHGU7JGldVZz4kRay1aIpD6kaIc7GWgAw80Z+L8Y7KbvBPw6TJq5iz2 bA+uEcVGSJ1jNQNz5JBDOib8atusW6Z55hQvzorPq7NYfR7PqmCnvLPoSpl1yRmNp0SU ryPHzQEsFHjd2ICibPZDA9Zq9jk3jmGz8ba2TwfMSYX3/HpYGwVkmkyTFSNqKEdynIkl kafn1B1LdrjcmQzrrMtrzEWpzZuGtmpNY0j8n3tNYcK5I+3kPA/tMcLwMbQNjpiv5aPa 2n0g== 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 dp8si3028893ejc.281.2020.06.01.02.22.01; Mon, 01 Jun 2020 02:22:23 -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 S1727770AbgFAJTI (ORCPT + 99 others); Mon, 1 Jun 2020 05:19:08 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:51542 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726148AbgFAJTG (ORCPT ); Mon, 1 Jun 2020 05:19:06 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 1 Jun 2020 12:19:01 +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 0519IsSr003135; Mon, 1 Jun 2020 12:19:00 +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 v1 3/8] platform_data/mlxreg: Add support for complex attributes Date: Mon, 1 Jun 2020 12:18:46 +0300 Message-Id: <20200601091851.5491-4-vadimp@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200601091851.5491-1-vadimp@mellanox.com> References: <20200601091851.5491-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