Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp836925imm; Mon, 21 May 2018 15:28:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqFWZZiy5J1e3qjtX/KcQvkJyljC4ApSTGwlWfxHrwc1Cz30i1uv4bx0fyH8xKTP/+kvDHm X-Received: by 2002:a62:a48:: with SMTP id s69-v6mr21701116pfi.134.1526941690980; Mon, 21 May 2018 15:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526941690; cv=none; d=google.com; s=arc-20160816; b=xsR66B7mE3yZQI1Fwx512zhIoMOS9TipVib43PM/xU7S2FQU7yLAd+p9iM0HusyIzE TuHjtuKNTiSHRpTnS7mZ+uLz6QqcS9+m2fDNQtzl5YK7oyBmrbxNSCmDW1jNxCDKSukY Uh5gMaNkclB66V78r8TfAoupNpgPum+CZ5fSbebz/u7eCMBUVQ8C09fAfJsMvMmF0mdx n5Rynt87XrOuQw3YP2KwqON4Yg0dhhLm/jtATLmNdlH8B859OK67WyL0GXvS/mxFuPJN v1KmE2BlcDzTPsnWpvZuBKROEZYMl++cQxd7TJXWTMeayN1QqVlOY09rWTrl/C4f5PzM LZAw== 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=1JTzh7BIE3gxr8oTgClm4t2rZXZkiQCBG02rL2ffQQM=; b=Bs9gtUt4emaUzy1FZxWG/VMASslvMJ3AmVz6pa40hfTagnGwK5SAQt6Ugd0NSydETp m0+kAwcTVZkWwRgxQ/R3VaB7KtMm2Um8mpAkh0thg/s4GwXHIm4J/70JGT+ml2IxIXHc HFTD74U9CuvRxJNFMMJbFMxPIJIK9yJBMzKrWctTWh/g8CNTNICJv6QAa71WCD3DMp6L 57wNAT3E0PYhyXSh4qaNyrgNQAQOCotliBNIBkkA9ZhEf/X4hQpYjDbqGcfnXKZPo2Fa rq2LRfr/MhXciGWSx5l6kv5EvqYSMO+oUWpqEUMBThAh2dg4+tnK25qMHdFPNAvrzJTx CH2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OKecgi+1; 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 m14-v6si11923803pgs.178.2018.05.21.15.27.56; Mon, 21 May 2018 15:28:10 -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=OKecgi+1; 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 S1752989AbeEUW1t (ORCPT + 99 others); Mon, 21 May 2018 18:27:49 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:37693 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752902AbeEUW1q (ORCPT ); Mon, 21 May 2018 18:27:46 -0400 Received: by mail-qk0-f196.google.com with SMTP id r28-v6so10797285qkk.4 for ; Mon, 21 May 2018 15:27:46 -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=1JTzh7BIE3gxr8oTgClm4t2rZXZkiQCBG02rL2ffQQM=; b=OKecgi+1kLY0GLHff2A9uA+2vnBtyw7am2CnYvSe2ZkENmkf+3JOey9oahhNf7JKw3 fpDP+RYVRCXzAnKII+lLpZQY4l2CI1tb8twDB2kL0kYdFNVIwDAO05vGX+rX0KN/Jrmm oucbZ0mcyJybTXUnr3dCg5JViFqAr3T6D1wKsZelugmBwT+pzutjzV6mD2ak7u4Do3g3 8w91IxuFMSEzQRSG+tAciyOQ9SLU8fCu4Z63SVIAheowldfY23YggHnk5xYDY6uTh/xU D27QM+qWOBb+QXuzNFJPrqYbj+jiyzfLJNqyNJ2LdCXnbm1+qKeIuP6KtU4X07zLzxfI xexg== 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=1JTzh7BIE3gxr8oTgClm4t2rZXZkiQCBG02rL2ffQQM=; b=NQ4jVljf2kL0CXtBA5H8OxjRseX2tuEDH9E58/8Volcs2CP7rj9n8gFxabZJjDWi+p XulVeM9pN25X4IyaRs0xHme/IaCNOVxTagi/DUzNdGooVG2LZTlafktdIWZyz+t7XgZ3 tlxbfCxLVU3DV1zZID7wwnypRKORnFD3Y8Wb9RLFbYUOubBUnlaRfPigC/n1NNl79AG8 enkDwUTrco6uHwT4KY/UzDlG6A3fj6tfLWI9hL1l43hCOFPNhCNCLP+uxKXNdahdN11s CLkAkPVVzQQWzNz7QbFsHAbkEAkMeTIcg4ujPU8e1biWrUlPT3DkVHcqqXxT1XUDt7O/ HSYA== X-Gm-Message-State: ALKqPwcU7Lv17qtlQQx55bHfXnQNL+dOeJC6K1k8s+iKz6nPURoLDTE5 G0gaapH91SAK8DHuCGt2j8IPy+SJCJrdayOb4EIIOopK X-Received: by 2002:a37:cbc1:: with SMTP id u62-v6mr18039061qkl.83.1526941665923; Mon, 21 May 2018 15:27:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 15:27:45 -0700 (PDT) In-Reply-To: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 01:27:45 +0300 Message-ID: Subject: Re: [PATCH 00/33] use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List 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: > 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. You forgot to Cc that Andy. For the patches I didn't comment, LGTM Reviewed-by: Andy Shevchenko > 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 > -- With Best Regards, Andy Shevchenko