Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp549960imm; Thu, 31 May 2018 05:27:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKqPUfbTjGvAj+x1DkEYs7gBo1dsjG+4FNOoFTfgYtU21GdD8TCdmVdHpn34R1YRMgmDU3z X-Received: by 2002:a63:583:: with SMTP id 125-v6mr5261122pgf.385.1527769660725; Thu, 31 May 2018 05:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527769660; cv=none; d=google.com; s=arc-20160816; b=X+FvnkyuL/qq4eqFXqycb66g+1KWqI5SnQR9PY9L1PlVD9eKEIZhlx5lDy/86u2+kZ MsnAJpjhDZ0mPDNTRC5yCCuoNfWSJ7kUvYlq88HJKCfjMgqRqOtZVwMcHOIMIspn9EYA kq//9sMWRWGypqgOfay9IVxV/Xw2CWA8GTYc8yxi+uBpRq5vKmGCg76Vmo4m06XQ3FbF ellu85IAXxLblyYCws7e+S7mxojUD5Cshogz6R5lHry4IbCd6D85NKTKk0WTvhBCU9oJ RHqGGv0r4sKqf5Ux5nlhdfS988is2zyt2QBrqE5jOkmqPvU58WPtc2PWdNUjJfNk/DUk Snlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=0hTFeijmruQKG0+DLWNxLqGoOfndfqw6x1PLcFXpzgM=; b=bxaNhYng91arT1KQf0x/mcXYcJKiZSZeTFG6M+2UmHBxVr06CrnJIK2cuduWedVC1L P9RKe5XRIGSTTSaV7HqQ7p6uKc1C9I5ybg+LIW4OmivXrh/h2lrEIERSDT/N+1Y0HofR WfhhB2fa5pP84Li4pjZkReRBvZZh2J98XepYwMmYWFtIDIMVipPpc5MwRNbmlNVFDLiO R8XRGR4X8MvENzyC7XDNcqaorj1v9NrHjYm/lpcfDLdCCrlYVrMusFdGrUN13BJycy2U 0ZSaVrMsdEfNKmT9qcJm3N2KYbPDF7uE9Oxb69SdrH093aWUrrt/40vVqSOD3vg/toPj D/gw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91-v6si36265646pld.132.2018.05.31.05.27.26; Thu, 31 May 2018 05:27:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754820AbeEaM1A (ORCPT + 99 others); Thu, 31 May 2018 08:27:00 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8234 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754197AbeEaM06 (ORCPT ); Thu, 31 May 2018 08:26:58 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5882187518FB9; Thu, 31 May 2018 20:26:44 +0800 (CST) Received: from [127.0.0.1] (10.177.29.40) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.382.0; Thu, 31 May 2018 20:26:42 +0800 Subject: Re: [PATCH v2 00/21] use match_string() helper To: References: <1527765086-19873-1-git-send-email-xieyisheng1@huawei.com> CC: , Mark Brown From: Yisheng Xie Message-ID: <838ab31a-7fcf-8a36-8fd4-c5385086c631@huawei.com> Date: Thu, 31 May 2018 20:23:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <1527765086-19873-1-git-send-email-xieyisheng1@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Mark On 2018/5/31 19:11, Yisheng Xie wrote: > Andy introduce helper function match_string() which can be used to return > the index of array for a matching string. so we can use it in many places > instead of open coded variant. > > I just try to make this API be used more commonly, sorry if this makes > too much big patchset. > > v2: > - Remove the Patches which Andy already sent out, or maintainer already > picked up. > - Add Reviewed-by or Acked-by tags for some patchs. > - Add some new patches[19-21]. > > Yisheng Xie (21): > usb: phy: use match_string() helper > mfd: omap-usb-host: use match_string() helper > Staging: gdm724x: use match_string() helper > cxgb4: use match_string() helper > hp100: use match_string() helper > iwlwifi: mvm: use match_string() helper > bus: fsl-mc: use match_string() helper > clk: bcm2835: use match_string() helper > clk: use match_string() helper > cpufreq: intel_pstate: use match_string() helper > drm/nouveau: use match_string() helper > drm: i2c: ch7006: use match_string() helper > ima: use match_string() helper > sched/debug: use match_string() helper > ALSA: oxygen: use match_string() helper > ASoC: max98088: use match_string() helper > ASoC: max98095: use match_string() helper > ASoC: dapm: use match_string() helper > bcache: use match_string() helper > powerpc/xmon: use match_string() helper > sparc64: use match_string() helper > > arch/powerpc/xmon/xmon.c | 23 +++++++++--------- > arch/sparc/kernel/setup_64.c | 7 +++--- > drivers/bus/fsl-mc/fsl-mc-allocator.c | 24 ++++-------------- > drivers/clk/bcm/clk-bcm2835.c | 13 +++++----- > drivers/clk/clk.c | 8 ++---- > drivers/cpufreq/intel_pstate.c | 15 +++++------- > drivers/gpu/drm/i2c/ch7006_drv.c | 13 ++++------ > drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | 13 ++++------ > drivers/md/bcache/util.c | 9 ++----- > drivers/mfd/omap-usb-host.c | 24 ++---------------- > drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 14 +++-------- > drivers/net/ethernet/hp/hp100.c | 9 +------ > drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 13 +++------- > drivers/staging/gdm724x/gdm_tty.c | 18 ++++---------- > drivers/usb/phy/of.c | 10 ++++---- > kernel/sched/debug.c | 31 ++++++++++++------------ > security/integrity/ima/ima_main.c | 11 +++------ > sound/pci/oxygen/oxygen_mixer.c | 14 +++++------ > sound/soc/codecs/max98088.c | 13 ++++------ > sound/soc/codecs/max98095.c | 13 ++++------ > sound/soc/soc-dapm.c | 18 ++++++-------- > 21 files changed, 109 insertions(+), 204 deletions(-) >