Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3236741imm; Sun, 3 Jun 2018 23:17:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL263393+1XEqfAPFG4rl+8bnJUVmNyZ15zNH9IL5nwmKsaD+aEWSMqar5mjspGa948QQdp X-Received: by 2002:a62:5d83:: with SMTP id n3-v6mr7818486pfj.68.1528093073400; Sun, 03 Jun 2018 23:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528093073; cv=none; d=google.com; s=arc-20160816; b=oy2pkcT4RNS4da1aOYw30LxBfsNKAl586FC7tmPGd4hz7bpCGTi7Hdj1pzOXf4Ww6V qnUn2tRf85FjuMCciMxywc3RWgsZqPRqYKMsFytGdXrhBXBWFFRuU5Obq3jbQ5Om19h+ NAsgCpIuj5FcsHzxKRyFwIJb5PG2v9sxF+ZNUpTrBvuDf36S9Z6X37jZ5AFDqSzYN0bD N0gHwkn81AGqSq3j3cZtHmiKHSg70VW0mCcqJxU8AqBz9OI6tg33abkJo5cJL6i4d0Oc 81oqrUtSoZ84sTS7bN/tl7wquxtfhFxA8OA76+hlpEkSphG00/thYMfiFTrehA8dbr4x eE/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=8/8c/uzLcabNtBqokI1pgSzNmt1whbPs0k4D2W6u8Y0=; b=YFLBUL524rQ2v1tPsdOAHe4bIAGvrATi+EZ1BqCs5T8jJkiY57OvbCIGJQiXKyQ4vw bMogDKTSq+aCPczDEvn9DomXfodU2AxCWO/LkTCHqwoMuIB1JKwUUJ1DpL2R1RQ/dogZ 0FxH0YpLhCHAIci8nDueDmz7V5Es8aZgMhQq22o8xATNxindfcIswGT48Dk25mzuhyvd mWSDFIHX+Ltht5rezeXCBEAxCuEEBpbMYV0f0HvxgJbUwJ7+0c6j/9WX+Fts3vtmsjjI pTj5686my3xlaxzYYnN0Ifd6cxOCSdK2Bxs6JbCZaM4+J5NgKiceZ076m0dWIsdUwR3Z 2S5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PhjxnBtW; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si4150625pfm.0.2018.06.03.23.17.39; Sun, 03 Jun 2018 23:17:53 -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=@linaro.org header.s=google header.b=PhjxnBtW; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbeFDGP7 (ORCPT + 99 others); Mon, 4 Jun 2018 02:15:59 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:41406 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbeFDGP6 (ORCPT ); Mon, 4 Jun 2018 02:15:58 -0400 Received: by mail-wr0-f193.google.com with SMTP id h10-v6so540605wrq.8 for ; Sun, 03 Jun 2018 23:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=8/8c/uzLcabNtBqokI1pgSzNmt1whbPs0k4D2W6u8Y0=; b=PhjxnBtWw4dhyKcP8JpUKVI95DHtRj77qCnnanh3XxXIQ5ZUJU6lGGYRU0MjqJgcWp KMb/PhsHo3tMzeaVSZIYWchCfCVgYOtei0QbeN0xhNrEK88UvsclhiQ7LrOjpkP5rvjh wXJR+u/vw0Ei7Q6EHDqtqH9xQekHkHM/w2Zf0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=8/8c/uzLcabNtBqokI1pgSzNmt1whbPs0k4D2W6u8Y0=; b=n50kwByYD5IHwnEstn/wJvbeXgx8kUdESoLRsOSX7B5MkR+edf+jttK8j/Ms/LXq6A HcMwE9mMpHbL7iAAD2GqxsB42FjWtoi8a6C1EbNQqDZNQJMl9urapsG2v2wW/u+5WhzZ j0WOZKZkj6x1QJDxuNbYxlgmjfjJwMEoECSYP8Z7AX0g5gjKzQ79EfCWjDoyV0zB5Xe8 11sZ8+GC4wxcEP81QEFSAAKvYKyaaWyUfctU4fF2eo3d3YnikI3AU0eAo21tJHjyJncz y97wc46gtNS4TYokN7bP9UZDkOTYAcbZmYrNd8prw3ZFG4Fsx0SECZussVuj/sY4bAAc wPKg== X-Gm-Message-State: APt69E34Xr/LCWUlR10h01i9GHUA+XLHe6QLcMicpC8mXfXf8VgOQwOr kj5F4X0KuY6qhOJyYRMUd+oIXQ== X-Received: by 2002:adf:e285:: with SMTP id v5-v6mr1141655wri.54.1528092957002; Sun, 03 Jun 2018 23:15:57 -0700 (PDT) Received: from dell ([2.31.167.234]) by smtp.gmail.com with ESMTPSA id x65-v6sm10121938wme.31.2018.06.03.23.15.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 23:15:56 -0700 (PDT) Date: Mon, 4 Jun 2018 07:15:54 +0100 From: Lee Jones To: Yisheng Xie Cc: linux-kernel@vger.kernel.org, Tony Lindgren , linux-omap@vger.kernel.org Subject: Re: [PATCH 02/33] mfd: omap-usb-host: use match_string() helper Message-ID: <20180604061554.GE25455@dell> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-3-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1526903890-35761-3-git-send-email-xieyisheng1@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 May 2018, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > > Cc: Tony Lindgren > Cc: Lee Jones > Cc: linux-omap@vger.kernel.org > Signed-off-by: Yisheng Xie > --- > drivers/mfd/omap-usb-host.c | 24 ++---------------------- > 1 file changed, 2 insertions(+), 22 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog