Message ID | 87ziswvjab.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80DB6C0553 for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 14 Apr 2016 05:47:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2BB220357 for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 14 Apr 2016 05:47:35 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7E930202F0 for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 14 Apr 2016 05:47:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 886E5266664; Thu, 14 Apr 2016 07:47:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2BFBA265AD8; Thu, 14 Apr 2016 07:47:30 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2D5BB26641C; Thu, 14 Apr 2016 07:47:29 +0200 (CEST) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by alsa0.perex.cz (Postfix) with ESMTP id 4664D2658A0 for <alsa-devel@alsa-project.org>; Thu, 14 Apr 2016 07:47:22 +0200 (CEST) Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 14 Apr 2016 14:47:19 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 106F748F47; Thu, 14 Apr 2016 14:47:20 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id EA0C8480A3; Thu, 14 Apr 2016 14:47:19 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id AB3AF480A5; Thu, 14 Apr 2016 14:47:19 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id QAD30311; Thu, 14 Apr 2016 14:47:19 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="208917071" Received: from mail-hk2apc01lp0208.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.208]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 14 Apr 2016 14:47:18 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lA32eX9xVrN9KsG2k7NENJWmgR06fTrnJzBJwGHtWcg=; b=m+Xy5JzB3lHAwntvN+jnTqgqB+944GwcqEmp+SU4rEeMyBkp1pYG09OO8+fLFZwnLAhomC0JpL5gg2iBiKfJmsOLx0VT5eGWuXgaqqX1UcYg/il34JbeepJO+yCzso8KybXP/+fYB91r41zD5qB+so3z2dNIM1gB5kw3DZxGpTA= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by PS1PR06MB1705.apcprd06.prod.outlook.com (10.167.53.15) with Microsoft SMTP Server (TLS) id 15.1.466.19; Thu, 14 Apr 2016 05:47:14 +0000 Message-ID: <87ziswvjab.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org>, Laurent <laurent.pinchart@ideasonboard.com>, Lars-Peter Clausen <lars@metafoo.de> In-Reply-To: <871t68wxxe.wl%kuninori.morimoto.gx@renesas.com> References: <871t68wxxe.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 14 Apr 2016 05:47:14 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0020.jpnprd01.prod.outlook.com (10.161.131.158) To PS1PR06MB1705.apcprd06.prod.outlook.com (10.167.53.15) X-MS-Office365-Filtering-Correlation-Id: 80df09c2-6296-491b-f291-08d364283bb3 X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1705; 2:2WtAguxPtS+e7VpZ1GjUZaaxi53URFtYhhHAaqFdCVfl+vPJBpUbd0uauqB2ZqYfNNJSQtDfShpv7OVitjWLamdx5perfM6fKIGg739RUkGUoY2YA9BdEI3EPLE7ZLWzbAvpsUVeIZxNBHTmJZHYRmIt8XcSo836fGk3ArXMWuwQwmWopY/VkIiqNcGhts7m; 3:OQeXeTJvqNW+3ZnHlgjKte5RxO7vTMU1SjXhafsVquBntDzf445edqtg+KKNasdiuZ6E8kla4tUSzzdJGLmexQ0ad3nWw/Qxs/TfBsuQ/c3N1ObPXskZNcigGH6iVnCQ; 25:xGvqpz8pn1F3GVJMgVfxUmZiHePcoR0P848ww5O+L1iWxEZhd3uD5PE9R1NObiRmfMiRgQ/s9dFVFbPkM3HmUzZc4pq1/vSsXTgHd0bLLJbcVikPOuV4F14QAdBXlbgBMYz7GMJZbyghgCO7bslR3optDW3YHqAnWXYMcG1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fUL0Y18TXUZ/nKJ6Gc0yPlT5TllshWYI018Tw8ZfyEPaQhbc5RLeOTQUdrKEKn4WEyV+4wU9ue7eQHxuyB/d57TLkfmyYxkbmCNAnsZ1KThIwgFklGr5C3FM+bYyyzYwdpzZQoonQ+GgMomYatYL40E6LCk20kBh2HMgEB2ErG+2yhNBsYuwTnwB0AioxRiA8vQwyy5nlsdFT1mxmrfA8g0CE+9jEZ1luCcnqqwBmA6EINj8RflgxNPZTGm6HwMS1FlaGzqcLwUJL10pkdQ0GtYeVUi5BjleRYvP5B4/Bq4boWj0Fxri/fitOCtmrQmYTUa6JCX9kgNhxPLXtEd5Iawc/20sjjPMpTfpzTO9hX5wGjQChca5uHtIMbRqVBSVVqfJitwCdh2H0j4urQcg== X-Microsoft-Antispam-PRVS: <PS1PR06MB1705FFF502CEB9C581810BE3D4970@PS1PR06MB1705.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:PS1PR06MB1705; BCL:0; PCL:0; RULEID:; SRVR:PS1PR06MB1705; X-Forefront-PRVS: 0912297777 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(5008740100001)(46406003)(81166005)(5001770100001)(19580395003)(86362001)(23726003)(33646002)(50986999)(76176999)(54356999)(19580405001)(189998001)(83506001)(4001350100001)(586003)(3846002)(575784001)(6116002)(2950100001)(5004730100002)(2906002)(50466002)(4326007)(77096005)(42186005)(92566002)(1096002)(229853001)(53416004)(47776003)(66066001)(36756003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR06MB1705; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR06MB1705; 23:LBdUQb3ZVKQV8BIKwPm0gJjsdks98tWn9QHL9P8HN?= =?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dOYRvBmtHC496A2kORXvP5WbM/?= =?us-ascii?Q?HVdVqKO7ATo3VMP5nbOOfm/5MnAzNd766UDrK2SecgvHzsE1t6oNyVG7MXJO?= =?us-ascii?Q?go=3D?= X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1705; 5:tlOuqm4vMujcje0LpMYXxA+96irNh8ylQtUN3ps8eRu+AbhpWoQ9084bCl9DeXRM1QupLZZ40tqb7LZNZ7po+GgJDrFp6vtzvggkhWorhhXC+Dsm3XBvCLN+YtEIjkUpYxwthjvEAoP07vBNEN//fkT4264fwJKvEEkLaYIdTZ3w37kqUmon7oWE+EnQQbl/; 24:SWTWDc1sfCl3EVyRaImUMq/OAon4LMTFX1JdimpbVaYlQb0iiQRAHWeK7ppBbZCPGzDOtz+eMjYrUhYfp6DfLhyotdZqxUcLpjZdrzPQPeA=; 7:854t+up7SjcdnR4PXRMvPgwTygND9ukwwnkVtN30RDmAw9+arL8SmcV9uJZ5FSpdtCDC8U/AWjKOIYIGGA/4vMiJLlhCnY3Qv2/MGHs6ZSwwniq/Q0InVfz+qxWglEA4Uzxd7mG/7LPQzSUyJnj6XSNgQZShRTmTWpc+bf9jzY79SsEVY7m7z5E7Hk7Fc31fab4R4G4bkKhjF3UB6j7X54QH/eFB1TtX9ergDu/ppbI=; 20:zjghjbedjjwlpWpa2k2iuTjy+1hdSzWy1UmtijDeWpEy1NJG3QTXPLcAKD9yV+RlexIa4JSfSkd8oaaReg5jyzWbONJ6klpquqPacgsRFpR4Dtj5InIPVU/D6t4VxfYCTVK3v3mBH0AU6TDdB91DHeN4NT+LbRDd5QBkBc1JAFs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2016 05:47:14.6708 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR06MB1705 Cc: Jose Abreu <Jose.Abreu@synopsys.com>, Linux-DT <devicetree@vger.kernel.org>, Linux-ALSA <alsa-devel@alsa-project.org>, Liam Girdwood <lgirdwood@gmail.com>, Linux-Renesas <linux-renesas-soc@vger.kernel.org>, Simon <horms@verge.net.au> Subject: [alsa-devel] [PATCH 1/4] of_graph: add of_graph_get_endpoint_count() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h index f8bcd0e..4b9c3c5 100644 --- a/include/linux/of_graph.h +++ b/include/linux/of_graph.h @@ -91,4 +91,15 @@ static inline struct device_node *of_graph_get_remote_port( #endif /* CONFIG_OF */ +static inline int of_graph_get_endpoint_count(const struct device_node *np) +{ + struct device_node *child; + int num = 0; + + for_each_endpoint_of_node(np, child) + num++; + + return num; +} + #endif /* __LINUX_OF_GRAPH_H */