Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp232542imm; Mon, 21 May 2018 05:18:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpkHNIJKFOmPrwQ0eeUPK5Rc+7/MzJgKtwz9vac6DbCHNV4MA3RFdiE7SpusmGFtPXQFbi8 X-Received: by 2002:a17:902:7d87:: with SMTP id a7-v6mr20882913plm.264.1526905092985; Mon, 21 May 2018 05:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526905092; cv=none; d=google.com; s=arc-20160816; b=X5TtirbAuYOYKp5SxqUdOAYsTqYW321gXoZTfZLMf8LPguHY7h6Xly2HNuPzx8HtsY g+p5JGbj0A3hPQZwNB05cBfHSSjsfBMeHgUwfNy1eLqUFLlvg/oqey+ejAmHjM0m8Iui jCm9sYA7dqmRd8ep8XLuMNml3c+TpNXWmNzimK7EZi6XCUYwvk+F6lotc/+fVYVSxykP h8ZV6f6gQgAyqR1fVi+gJLrcBfVsM6Rk80yg7GdeTSuIu1Sc+tg6dviTuJV0i9L1VPP8 2Jg7rtT2JzSZ2vqP1aZTqenAPvhaRphf+jqRb/QgsovYncq9lJKmyeLFP7mgPa9jTG12 Kong== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=BaaDHHoKzsOIL/B6yk4n3Gh+LyaZ/nBMvCI1ycwIELw=; b=FdXJn8j5ZIu2oc44TbTKVl8XWG1vPvQq8p5Qc0gBNChBJ9UEMKdYgoBh0TZV7RYYac yLF/7mFgRw1nJE6c5bMi/Uetn9k7+gc1XZdM4n4N9CpjUj91cdq8L+4odgiM6rpaHNRw vdvFhlzvDohiWrOtRDr81aGeWDoJTQUc0MPVxfNlL+3edS7/Eos7K75k+wBdlR6Tm/kW o4fRgBA0sb/XGlCztzJgwUQMkP0QwbtW50wZCe2BstVV5Pf4wMCXmpjKLm/KKQWq8Qwf aezxAcWu5OWaLCrdXLtsMJYT0XgxHAvC/dTGpO1lg0RS0SKw2No1oP91EzXop0Q6SICu ZMmg== 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 p73-v6si13911367pfk.275.2018.05.21.05.17.58; Mon, 21 May 2018 05:18:12 -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 S1752860AbeEUMJB (ORCPT + 99 others); Mon, 21 May 2018 08:09:01 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38618 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752644AbeEUMI7 (ORCPT ); Mon, 21 May 2018 08:08:59 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CFD12C22C935 for ; Mon, 21 May 2018 20:08:55 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.382.0; Mon, 21 May 2018 20:08:47 +0800 From: Yisheng Xie To: CC: Yisheng Xie Subject: [PATCH 00/33] use match_string() helper Date: Mon, 21 May 2018 19:57:37 +0800 Message-ID: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 intead of open coded variant. I just try to make this API be used more commonly, sorry if this makes too much big patchset. Yisheng Xie (33): usb: phy: use match_string() helper mfd: omap-usb-host: use match_string() helper Staging: gdm724x: use match_string() helper gpiolib-of: use match_string() helper cxgb4: use match_string() helper hp100: use match_string() helper iwlwifi: mvm: use match_string() helper vfio: use match_string() helper phy: tegra: use match_string() helper pata_hpt37x: use match_string() helper bus: fsl-mc: use match_string() helper clk: bcm2835: use match_string() helper clk: rockchip: use match_string() helper clk: use match_string() helper cpufreq: intel_pstate: use match_string() helper mmc: sdhci-xenon: use match_string() helper pinctrl: armada-37xx: use match_string() helper power: supply: use match_string() helper thermal: db8500: use match_string() helper video: fbdev: pxafb: use match_string() helper drm/nouveau: use match_string() helper drm/i915: use match_string() helper drm: i2c: ch7006: use match_string() helper drm: use match_string() helper ima: use match_string() helper apparmor: use match_string() helper sched/debug: use match_string() helper ALSA: dice use match_string() helper ALSA: oxfw: 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 drivers/ata/pata_hpt37x.c | 13 +++++------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 24 +++++------------------ drivers/clk/bcm/clk-bcm2835.c | 14 ++++++------- drivers/clk/clk.c | 8 ++------ drivers/clk/rockchip/clk.c | 16 +++++---------- drivers/cpufreq/intel_pstate.c | 15 ++++++-------- drivers/gpio/gpiolib-of.c | 7 +------ drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 ++----- drivers/gpu/drm/i2c/ch7006_drv.c | 13 +++++------- drivers/gpu/drm/i915/intel_pipe_crc.c | 22 ++++++++++----------- drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | 13 +++++------- drivers/mfd/omap-usb-host.c | 24 ++--------------------- drivers/mmc/host/sdhci-xenon-phy.c | 11 +++-------- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 14 ++++--------- drivers/net/ethernet/hp/hp100.c | 9 +-------- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 11 +++-------- drivers/phy/tegra/xusb.c | 15 +------------- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 16 ++------------- drivers/power/supply/power_supply_core.c | 16 ++++++--------- drivers/staging/gdm724x/gdm_tty.c | 16 ++++----------- drivers/thermal/db8500_thermal.c | 8 +++----- drivers/usb/phy/of.c | 12 +++++------- drivers/vfio/vfio.c | 11 +++-------- drivers/video/fbdev/pxafb.c | 6 ++---- kernel/sched/debug.c | 20 +++++++++---------- security/apparmor/lsm.c | 25 +++++++++++------------- security/integrity/ima/ima_main.c | 11 ++++------- sound/firewire/dice/dice.c | 8 +------- sound/firewire/oxfw/oxfw.c | 8 +------- sound/pci/oxygen/oxygen_mixer.c | 13 ++++++------ sound/soc/codecs/max98088.c | 9 +++------ sound/soc/codecs/max98095.c | 11 ++++------- sound/soc/soc-dapm.c | 18 +++++++---------- 33 files changed, 137 insertions(+), 307 deletions(-) -- 1.7.12.4