Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp810068imm; Mon, 21 May 2018 14:56:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQQ6Bf/PDvyXBqa9N1Dd5ufG6oZVsNO+0ksjmo0CgqwKIoryyy3G6kxVkPRIioQLCFztVW X-Received: by 2002:a17:902:d681:: with SMTP id v1-v6mr21862289ply.16.1526939783649; Mon, 21 May 2018 14:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526939783; cv=none; d=google.com; s=arc-20160816; b=00aNSlwTkCYcQS1He5GT+OMGVYPgpTNCk4rRcHrV+7AlCODL5AHP4S0H45sdY++6Io rQW1dPwBkc7sY4ZVS28CpLcppjam9rZ2dVhuqQ+JwTATtyJTIsYJ55fEA3CZSVdmVtJh hcSHgHXt5q7HgjWWkWEeHsNDK05z5jCqiP09H5WLQjzlzb94FSiOyR3O214D36Duv/un R8mkBM7tXsD1IeLAJ8xiOafWirg7fNMjM12+0Ojiu7U7CaLaH2qffpGy7bEk2OfXG02N LsGvS6GBkZwx2lnoe+s0TfUxo55h/6n7YiUkGDaAc4EtCdB1N9q8t6KKor9CPuMhOovZ X8bA== 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=6mHDPlqc2bkzxrfqBzew03syGd1yOUztNqMoHIDNbXw=; b=SaWUaMQiIfroVbgmolOVwLFugEcr0YVRQBCn8Ne4ER9J1c7g07gEClGJ0QfI/qBmyw 1zIVsJkM5Itm+EuNVqq9z1BEn8Qawpag9V4RH7LEn3vsdzanESd3wG3OzEpFEySdmfTm 6oL2cP7yYxoNcqdYVMSPAbDoYdgZJ5y3ScyEx5L4f6Um4UXQetVYluVDhj1jx9jRWgWx D6qlkf7sBzeRdqfIVmuDaqpLFsqpxrJuzfkhL0anAqsJV4m3Yg7lJA8fnRQ4Zbb9iBHj guq0KeaHpnFMrx0HZBeo7ILa1ZVRComBV0N7EomwacHPP2aqRp0vugRQwDiPYcBMOVgx KapA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YwP4+A8v; 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 g6-v6si15752185pll.69.2018.05.21.14.56.09; Mon, 21 May 2018 14:56:23 -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=YwP4+A8v; 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 S1754360AbeEUV4B (ORCPT + 99 others); Mon, 21 May 2018 17:56:01 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:46884 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754177AbeEUVz7 (ORCPT ); Mon, 21 May 2018 17:55:59 -0400 Received: by mail-qt0-f196.google.com with SMTP id m16-v6so20879069qtg.13; Mon, 21 May 2018 14:55:58 -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=6mHDPlqc2bkzxrfqBzew03syGd1yOUztNqMoHIDNbXw=; b=YwP4+A8vx6IYgvUg74Od0Qn8FUyc8iVNw9a/sW3054T2YA7ydPTaFzILPKdArD8qbT vqXA6S8PzJUOcFx1bmGUvpYhcYstu8nxMl6uKs7Xn1eLp0r0E3Y4A48xm0I7ykqux2rn mV4N9TCX5uT/3Ps5GxzYAuEAn7+aAmdeMtO2zW2XU7lM0ASv1XJmxPOk3uH7SLdAGZHL k2KKHMXFlWRAcz+02jyO1xhUfKY3Or0yE4cwBxngbjtTsRmpmDJ/PWUqk44o6NYet/pi 6XUcbzApdz2p1lwBlDwth684IRMXItdbiEsjEAmlDsYwd7KnRH1Pdl5gwHcGA9RpuIP4 I0iw== 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=6mHDPlqc2bkzxrfqBzew03syGd1yOUztNqMoHIDNbXw=; b=Pt7FRt6C3nNTE1CHQ2PCdUaC8YqUswkdLBfKtkdxD+zqfFeeDGWelvxCGZTWTAdYU5 kIbxoBaV4UsmCQZ268TTb7YKYLWwnv5oaN7lsVgAz5GO7VBa0gvOzlGI9SmdPCQAhv02 AfWilG57ZBuG/lgqLvbSXr6jjzZrgtRee3xHUbzMLSRQJXVEWDAjMzV8weJpqLde6F1t xeZMlCkZXW+vRDEz1qGCHRpL+CT7GhwLg7X6ZC00j1F5MZFmZRVvMKDs+Z9KDnhufVIS atBNsu6Tdi4H6PATIlDJLurZWzb2rpskp/yk8sP4k6Y+c0w8lH3EJORlEW76Dp9dPaiM 0AVQ== X-Gm-Message-State: ALKqPweZ1kGjlmjuO17cnCVvN3qdbMrz47hmm3+fDoNzIhCj/q6fDTCH akgnEk/duReKct3i5yNwptdxdX614M+VnBjiw0M= X-Received: by 2002:aed:3dcb:: with SMTP id j11-v6mr18957890qtf.404.1526939758470; Mon, 21 May 2018 14:55:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 14:55:58 -0700 (PDT) In-Reply-To: <1526903890-35761-18-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-18-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 00:55:58 +0300 Message-ID: Subject: Re: [PATCH 17/33] pinctrl: armada-37xx: use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Linus Walleij , linux-arm Mailing List , "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.kernel.org/patch/10378781/ > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Gregory Clement > Cc: Sebastian Hesselbarth > Cc: Linus Walleij > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-gpio@vger.kernel.org -- With Best Regards, Andy Shevchenko