From patchwork Wed Feb 19 16:58:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 3682481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2C0979F2EC for ; Wed, 19 Feb 2014 17:01:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86A4B201D3 for ; Wed, 19 Feb 2014 17:01:35 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 99148201EC for ; Wed, 19 Feb 2014 17:01:34 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGAVp-0007uR-JJ; Wed, 19 Feb 2014 17:00:45 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGAVh-0000Tu-Hi; Wed, 19 Feb 2014 17:00:37 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGAVa-0000Rn-Kf for linux-arm-kernel@lists.infradead.org; Wed, 19 Feb 2014 17:00:31 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N190035R5W3YV90@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2014 02:00:03 +0900 (KST) X-AuditID: cbfee61b-b7f456d000006dfd-2c-5304e3134d06 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 38.CE.28157.313E4035; Thu, 20 Feb 2014 02:00:03 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N19001665U6CW20@mmp2.samsung.com>; Thu, 20 Feb 2014 02:00:03 +0900 (KST) From: Sylwester Nawrocki To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH RFC v1 2/3] of: Add definition of maximum length of a property name Date: Wed, 19 Feb 2014 17:58:43 +0100 Message-id: <1392829124-25705-3-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1392829124-25705-1-git-send-email-s.nawrocki@samsung.com> References: <1392829124-25705-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsVy+t9jQV3hxyzBBre7DS3mHznHatH/ZiGr xYE/Oxgtzja9YbfY9Pgaq8Xty7wWa4/cZbdYev0ik8XTCRfZLFr3HmG3OPymndVixuSXbBbr Z7xmceD1WDNvDaNHS3MPm8flvl4mj02rOtk87lzbw+axeUm9R9+WVYwenzfJBXBEcdmkpOZk lqUW6dslcGV8fDGVseACa8WExb3sDYxnWLoYOTkkBEwkNl/8xgZhi0lcuLceyObiEBKYzihx 4tduFging0li78HnYFVsAoYSvUf7GEFsEQEXic4H68CKmAXmMUlcaj/KBJIQFgiV2N/4gR3E ZhFQlZi+tY8ZxOYVcJM42/kXyOYAWqcgMWeSDUiYU8Bd4tHdFWCtQkAlDadPsU5g5F3AyLCK UTS1ILmgOCk910ivODG3uDQvXS85P3cTIzhYn0nvYFzVYHGIUYCDUYmHl/MOS7AQa2JZcWXu IUYJDmYlEd4594FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeQ+2WgcKCaQnlqRmp6YWpBbBZJk4 OKUaGHt1Dzf9C2Bi0w4M7UlIVD8d9t1Ou+regznTer/OnfeEs3fTxd/a5o6fH+xVjI6uZJKu y7ySzpn2SPS30Mcq2YhYg51Fs2bNzvu277tpAl/0g7L4eWrffn5dlV7i+0WcgbkwWvANt+iK jxLakpvaL318bGv+OGGZukzo7KBLhqoL6xM4RV9WK7EUZyQaajEXFScCAJozGB5SAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140219_120030_947237_C3A5D83A X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.6 (----) Cc: mark.rutland@arm.com, linux@arm.linux.org.uk, t.figa@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, Sylwester Nawrocki , galak@codeaurora.org, grant.likely@linaro.org, mturquette@linaro.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Maximum length of a property name is defined by ePAPR (2.2.4.1) as 31 characters. Add a corresponding definition, including the trailing null space. Signed-off-by: Sylwester Nawrocki Acked-by: Kyungmin Park Acked-by: Rob Herring --- include/linux/of.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 70c64ba..7f71221 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -30,6 +30,9 @@ typedef u32 phandle; typedef u32 ihandle; +/* Maximum length of name of a property, including terminating null */ +#define OF_PROP_NAME_MAXLEN 32 + struct property { char *name; int length;