Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp795661imm; Mon, 21 May 2018 14:37:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqUnURs1n02bvVOr5UoCbLuO+rvU6sklmQLT8NQ4dSE8H0HsJWqWH0k89GaCQoob4cWBGF X-Received: by 2002:a65:5382:: with SMTP id x2-v6mr6074550pgq.160.1526938652546; Mon, 21 May 2018 14:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526938652; cv=none; d=google.com; s=arc-20160816; b=TVonoKHMg0g6Sl53lKtpYwvW1y0C+fvFr7gLW7LpiuC29d3XDKIz6o6HeDWh4XkKQI X2LyGPns5seMJy0Y6OtZeeMgfe2BPkk83w/RHlM7Ou6IzPwFAZ5FTbdA4q860POs0tED mY3YnRMXi8o7VZVuE3Mj/u0gN/oyH1j13OVx+XPGH/M9VqpID7yWLiM0i23r90qN2cXb dKicSyjgFlLUoYTSg+xFeYRBYukCmc2dewPV+ahIj5vF3Opeh+V2Yd288DHFFiV4JT1Y vv1v+Zj/pV+c7bwfiwxR5tdq0SQWY7hiqgFRsuF/P3/nUUC/HGrdVI6sgVDSYHKskrFD TKRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=TiTugRLyjpR2xE85KaED/uOIenck6MBGBXrIpAla6mk=; b=r11OWGWO2JATu+JdKWwnEOmoCPo6vE6yE27fzOjyoiUKwP7NzrwlCWAu7Z6svZ6IsX hVhMV6swSzD2CrXV+KC4HNrXKGqiH+X1UeMJ21ikb6z2Msb4C1q3uDfxouEPodrYGo9E EQmhwCG8gMYlMMaYisRhrl4YfgSBod8V4otVC3qmr7R/uqReHp8QVFpExpnTA/bSIfWl l1WEZW3z2tZqutBig7h0tpJjsb0Cja2nJXYcSDEln5UYtq9nFCOocTCHG+1gtreht5CD g7vom/afcEfjYx+R3nZwbJs7Wp+LzNEucpBUZ3JsZJt4aDb0ZpGjOzvweiBkywGb5kCN 5vGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYNv1vzW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12-v6si11651750pgf.222.2018.05.21.14.37.08; Mon, 21 May 2018 14:37:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYNv1vzW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754516AbeEUVg7 (ORCPT + 99 others); Mon, 21 May 2018 17:36:59 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35475 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753925AbeEUVgy (ORCPT ); Mon, 21 May 2018 17:36:54 -0400 Received: by mail-qk0-f194.google.com with SMTP id h140-v6so2563845qke.2; Mon, 21 May 2018 14:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TiTugRLyjpR2xE85KaED/uOIenck6MBGBXrIpAla6mk=; b=OYNv1vzWLMj3zzwHzpiU+Fo4JHBysPqHaBNcbzTVnDcwSRP9BR5iaVmwpw6Km8FMTM wsrnExRqT+kx7XJdkm56I7P9araFPe5oHDLtBtqrO/DlNGqSd95pnpFlAMfmoUs91SsF 6xKsBSGozG8X/vVynjPTQS6O60mle/7KvnEPq1IY4N+CxY98tHfWj/udFpmoiRcAGQKi uiHBCEEZ4/r+4zd2nFWsRrP8YY+ZfG4D9zcDEHcDUBaWNEjLrpGUxT+L/EVzO8i0ZNQD tcTCq4umVxR1DYkmHJJ8YrEFRI9rPrcWduRbYl7BfI6GNuPBUD4GJNm6KQ2B+xY3129p 39Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TiTugRLyjpR2xE85KaED/uOIenck6MBGBXrIpAla6mk=; b=g8vlTH0ydtjXNRuZcyZ2E68GBUCR/t2Bzy6o4fo2jxIt/RWvqjLpZokK2j5f0hq54N /22/ombEW73nz809IHZhLhcy2CybMbDu8XN+YHobSs5ToYlyGVzal0rk7m+ztyVrRP7c jdibjfb31S3nlXc/XDL+G6IdAqBG1e93TLSySwLNFwxiXNAWZKf7tS/6SDrx4t0v0nP+ kafKogKmcvYruBxQscsG89L6hSVCA79wFWvF5SAB+ruy3aAxgSGh/q/p4berjFRs2dtT kX7DFnG2hxqbgg/RYSlNf3mkBQmVLvVGqWXTJCPuhCTCx5PDviuXLSfcABIqnW5N1Jmr aCRw== X-Gm-Message-State: ALKqPwernim1elWM8+n16wVyXtL7ezaMv4/JJhZ6Z4OC+7o2EDY/5cjk kKSoeT+ZBqeqccSdDxVABVwKkt55HkVpIIeZCcvJnrV0 X-Received: by 2002:a37:ae05:: with SMTP id x5-v6mr18087670qke.185.1526938613847; Mon, 21 May 2018 14:36:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 14:36:53 -0700 (PDT) In-Reply-To: <1526903890-35761-5-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-5-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 00:36:53 +0300 Message-ID: Subject: Re: [PATCH 04/33] gpiolib-of: use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List , Linus Walleij , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > https://patchwork.ozlabs.org/patch/908134/ > Cc: Linus Walleij > Cc: linux-gpio@vger.kernel.org > Signed-off-by: Yisheng Xie -- With Best Regards, Andy Shevchenko