From patchwork Fri Jul 11 14:04:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 4534651 Return-Path: X-Original-To: patchwork-linux-media@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 1F4179F392 for ; Fri, 11 Jul 2014 14:10:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 396812017E for ; Fri, 11 Jul 2014 14:10:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4211220158 for ; Fri, 11 Jul 2014 14:10:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754752AbaGKOE7 (ORCPT ); Fri, 11 Jul 2014 10:04:59 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:29322 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753718AbaGKOE4 (ORCPT ); Fri, 11 Jul 2014 10:04:56 -0400 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 <0N8J00EXFWG7QG80@mailout3.samsung.com>; Fri, 11 Jul 2014 23:04:55 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-05-53bfef068541 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6A.B0.05196.60FEFB35; Fri, 11 Jul 2014 23:04:55 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8J00JI5WF7VM80@mmp2.samsung.com>; Fri, 11 Jul 2014 23:04:54 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kyungmin.park@samsung.com, b.zolnierkie@samsung.com, Jacek Anaszewski , Grant Likely , Benjamin Herrenschmidt , Michal Simek Subject: [PATCH/RFC v4 07/21] of: add of_node_ncmp wrapper Date: Fri, 11 Jul 2014 16:04:10 +0200 Message-id: <1405087464-13762-8-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1405087464-13762-1-git-send-email-j.anaszewski@samsung.com> References: <1405087464-13762-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsVy+t9jQV329/uDDabfYrHYOGM9q8WHplZm i/lHzrFaHPizg9Gi9+pzRouzTW/YLS7vmsNmsfXNOkaLng1bWS2efDzN4sDl0fOmhdXjzrU9 bB5/u6Ywe/RtWcXo8XmTXABrFJdNSmpOZllqkb5dAlfGj55dzAVT2Cu+3FzN3MDYwtbFyMkh IWAiceDZf1YIW0ziwr31QHEuDiGB6YwS948vY4Jw2pkkNm3dxQRSxSZgKPHzxWswW0SgXKLn /TOwDmaBF4wSO5vXMYIkhAWsJA6caQEbyyKgKnFuwQJ2EJtXwENi/oJFLF2MHEDrFCTmTLIB CXMKeEoc7L8JdpEQUMnDtSfYJzDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHHTP pHcwrmqwOMQowMGoxMN7Ys2+YCHWxLLiytxDjBIczEoivFff7A8W4k1JrKxKLcqPLyrNSS0+ xCjNwaIkznuw1TpQSCA9sSQ1OzW1ILUIJsvEwSnVwOja96nu1ecbzteYWj7ctDtfM+/BF7W3 hjWXt+z5WDOb2XRmwcYNB7lvlJ/hMrpV6lm5cLaYq+wRi8NcQk8iF1fqPX+rmHrqv/GvzzMP yqxhOcPUdeLaszjjqkca926xB39Um5npba69KU6r58zjc3U3hC69cK0qOua649k+a94yI7mU qWoFMrVKLMUZiYZazEXFiQDQ+pfdNgIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The wrapper for strnicmp is required for checking whether a node has expected prefix. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Grant Likely Cc: Benjamin Herrenschmidt Cc: Michal Simek Acked-by: Sakari Ailus --- include/linux/of.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/of.h b/include/linux/of.h index 692b56c..9a53eea 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -199,6 +199,7 @@ static inline unsigned long of_read_ulong(const __be32 *cell, int size) #define of_compat_cmp(s1, s2, l) strcasecmp((s1), (s2)) #define of_prop_cmp(s1, s2) strcmp((s1), (s2)) #define of_node_cmp(s1, s2) strcasecmp((s1), (s2)) +#define of_node_ncmp(s1, s2, n) strnicmp((s1), (s2), (n)) #endif /* flag descriptions */