Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp883561imm; Fri, 27 Jul 2018 07:45:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpedg7tNY+6mZ8H4b8LMMtOFCa2YuqVwasG5n5qTclAvF4OiavuL+RTzngpnvs+1PpkB9gJd X-Received: by 2002:aa7:800f:: with SMTP id j15-v6mr6957490pfi.174.1532702757979; Fri, 27 Jul 2018 07:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532702757; cv=none; d=google.com; s=arc-20160816; b=GIF4Z7R1UqcOnABkDfCrqGvHiIu/QbbcSnCXG9oC2J0QXF+Dnwr6gn7EirIjkwVogy R8NMJYoL1H5cxIiJJOaYWM0pzY6z676n5WZmJHhuVAEuY4a6FxnGFw014L5RjP2hUAo0 OJSkArAz9dGF7+bbMtMjpD0RoXfDrvrww81ViI8iT0vio6B7V8Luywo19gZz8nRVJnSs v2pm3RAYyDr6evAcBGVZP7i5S6G9nd87oxLZY+wuRHid/VlbQlwqn6Bk7dCLOrXW7pFW +1nU5xrfcaz+U7nKp3D/sXyZRBazH/8beHyemWlQA9U5gpqxWPT7Zwf3My7MoHVykFhz ovIQ== 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:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kZjHxsZOj/WdhO6n1hcI7LUDsB31HwAaKvALhYmM2lM=; b=g1YGspU5Ww0hf7RPBytAV8tHCZdvyNueyZGXiaV7XpL7Y9ASN8PAyc2GaakKkMrH22 hnw5Kts5fSdYzEIaCfKNjno6gYrGfBvLmycYWhn+otghipKu0aQF1BYQTTrKIYMcCKPg PRlz6woY35HtCjlvcZxRd2rUlB6CkQjJPaQIFA4Wzrpe/Gbb428/UcItPLfnnl40i+D9 vZN07nwP1IlWfW4cP9SLtWOwXATEReEFVEHtuUgVi5KVEXhjUElHQb4edw3/qbK9z3M7 wm9H07s7zc7Q92OiTsOx7j90Hb71m51qYf+tQ+SxLzlF888SdyLe+RDBUo0NkaQJwmPH e9Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19-v6si3468827plp.71.2018.07.27.07.45.40; Fri, 27 Jul 2018 07:45:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388563AbeG0QGy (ORCPT + 99 others); Fri, 27 Jul 2018 12:06:54 -0400 Received: from inva021.nxp.com ([92.121.34.21]:55186 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387912AbeG0QGx (ORCPT ); Fri, 27 Jul 2018 12:06:53 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4600E200015; Fri, 27 Jul 2018 16:44:38 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (inv1260.us-phx01.nxp.com [134.27.49.11]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0B11020000F; Fri, 27 Jul 2018 16:44:38 +0200 (CEST) Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by inv1260.na-rdc02.nxp.com (Postfix) with ESMTP id 7C41A40A59; Fri, 27 Jul 2018 07:44:37 -0700 (MST) Received: from fsr-ub1464-137.ea.freescale.net (fsr-ub1464-137.ea.freescale.net [10.171.82.114]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w6REiOWW027745; Fri, 27 Jul 2018 07:44:36 -0700 From: Ioana Ciornei To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, ruxandra.radulescu@nxp.com, devel@driverdev.osuosl.org, Ioana Ciornei Subject: [PATCH v2 2/2] staging: fsl-dpaa2/ethsw: document nested structs as per kernel-doc Date: Fri, 27 Jul 2018 17:43:18 +0300 Message-Id: <85d2d4043eefb18da8d99be8b82dc17cfa4fa4cd.1532701591.git.ioana.ciornei@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document nested structs per kernel-doc requirements by moving all comments before the actual struct. Signed-off-by: Ioana Ciornei --- Changes in v2: - none drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethsw/dpsw.h b/drivers/staging/fsl-dpaa2/ethsw/dpsw.h index 82f80c40..db43fa3 100644 --- a/drivers/staging/fsl-dpaa2/ethsw/dpsw.h +++ b/drivers/staging/fsl-dpaa2/ethsw/dpsw.h @@ -79,24 +79,21 @@ enum dpsw_component_type { * struct dpsw_cfg - DPSW configuration * @num_ifs: Number of external and internal interfaces * @adv: Advanced parameters; default is all zeros; - * use this structure to change default settings + * use this structure to change default settings + * @adv.options: Enable/Disable DPSW features (bitmap) + * @adv.max_vlans: Maximum Number of VLAN's; 0 - indicates default 16 + * @adv.max_meters_per_if: Number of meters per interface + * @adv.max_fdbs: Maximum Number of FDB's; 0 - indicates default 16 + * @adv.max_fdb_entries: Number of FDB entries for default FDB table; + * 0 - indicates default 1024 entries. + * @adv.fdb_aging_time: Default FDB aging time for default FDB table; + * 0 - indicates default 300 seconds + * @adv.max_fdb_mc_groups: Number of multicast groups in each FDB table; + * 0 - indicates default 32 + * @adv.component_type: Indicates the component type of this bridge */ struct dpsw_cfg { u16 num_ifs; - /** - * struct adv - Advanced parameters - * @options: Enable/Disable DPSW features (bitmap) - * @max_vlans: Maximum Number of VLAN's; 0 - indicates default 16 - * @max_meters_per_if: Number of meters per interface - * @max_fdbs: Maximum Number of FDB's; 0 - indicates default 16 - * @max_fdb_entries: Number of FDB entries for default FDB table; - * 0 - indicates default 1024 entries. - * @fdb_aging_time: Default FDB aging time for default FDB table; - * 0 - indicates default 300 seconds - * @max_fdb_mc_groups: Number of multicast groups in each FDB table; - * 0 - indicates default 32 - * @component_type: Indicates the component type of this bridge - */ struct { u64 options; u16 max_vlans; -- 1.9.1