Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp803045imm; Mon, 21 May 2018 14:47:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpANbGSMeLSYP9yrAoZvR3snCDDpBR40N0G9vhGIuksYz3nB70wFCRZB5jBDU61Zdvvomdf X-Received: by 2002:a17:902:7283:: with SMTP id d3-v6mr22348098pll.192.1526939224462; Mon, 21 May 2018 14:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526939224; cv=none; d=google.com; s=arc-20160816; b=CefLqmXwpIPUjoESoLXi+DYxdZCdMw2W15h4EBFn23siSxhQ5EK20tORgfjCgnNUM5 n29u3EmQen0U69QjlpdjOE6uin6N4gfxp51T83Imt0SXsPewu57qhquHD0E8b4ca1/z+ KsvWcj85MZsKNVc/2H8xStkeMj97/zgvtAJoa4TF3skjs9boUbp6j/Q3TDe/TCdtR3JP UBL750eOu29lXETW1FVCcntFUfsKvtYG0p6Mx5W4gSWnRu6TpWpij7hd+oUFka0Q4FxT DUKS+uijMlb53fHIBB2PWiWZWB3LzZJqmegQqLJk7VdszQ6sHT9+ScxA+1gzadNDa68/ OGGw== 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=csaZvVd35iGhlZ9RZ7Pslgp59PlH7jhYnz/rOVtvRJg=; b=s4QjXTnN/k6PIoPHMzcaSZ0UGagvNXCw7OmPseOIuQzCg8yhoy/0MYTbRijicEzKmL wAm+1t2XCObx+behzkPrngFHsj7HvfXTsU5feFhP8bqSUgNbpxF95DUWQ7lR1xPhGdWT cyol5JM2F6AEd0WLAcEztbwS91VU5+5Y2MnlmxXcJFNth7CJSRRUJ8GUxAwxTklKISRj ZxF7V1tN+Ks1NOFCPDkYpaZ6wkXWeFIZrMXcFxfZkTgwLuNjQoAPif+bB1s50SMUM51F XJGGyP2trzCjlN1A/WynXBejbtHCB6HefLDGPOu8EN8Q+gJ3s6b0yYy2lzcVvu9/PBSI LBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DjvSNVEW; 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 u6-v6si15450320plm.99.2018.05.21.14.46.49; Mon, 21 May 2018 14:47:04 -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=DjvSNVEW; 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 S932435AbeEUVq0 (ORCPT + 99 others); Mon, 21 May 2018 17:46:26 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:39078 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932222AbeEUVqW (ORCPT ); Mon, 21 May 2018 17:46:22 -0400 Received: by mail-qt0-f194.google.com with SMTP id f1-v6so20886008qtj.6; Mon, 21 May 2018 14:46:22 -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=csaZvVd35iGhlZ9RZ7Pslgp59PlH7jhYnz/rOVtvRJg=; b=DjvSNVEWhIqjTepSAxK86kfoTJgQ/Zd7Yllq549+OD4PVLON6bnmqbzFRfUKczx70R uOu8n0sgLJK266MAqRAP2O+L/op3qLIbhkhn0QET9dilvQq3UJhj1cT+isMT9LTBZqpA zqI3M8Um4IzHf6Y2+y6sxJa3+NmzbNzUj+oyyHFO5+2ygVc5a80kc5+m2l1tDA6Fe/1Q tT8LvCLEeiNmUBzdJEFWFHNDoYUnUkSD6Yx4LJRqsXPBbkM18rfPHlFpMa9/oTSzsC4q Omf9ILY2om5/uy9u0ftowMORdR5jhTJgjwcjwxn0iAE/BBv9Agj1nGESwpD8wF/0hJ+l efbg== 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=csaZvVd35iGhlZ9RZ7Pslgp59PlH7jhYnz/rOVtvRJg=; b=r6QU6pTc6sVsQ38TjcNo/ZQdDNNLuh+rM/7IAi4vSE6tkP3NDd4wI7PnH7Tq1TBSfn MsCr7YGNLyDO9E1XUdLsn0ycSKiQRkgf+1uIkwhAB4CgnicAe3giUxmay5sT9VZpCCL8 +iQafdAGo2URVYjCNroIbnzKXiTRQtqxYQU/Ee6hKzG/WqThRbOB2DNOMNw7MwhflsRR PqgvhXvJiTTb0NovrMZ9oJC3OyMtp0wExI27Mn+jg3MNXttBEX4V0kfwwkHkpojH1los Rx2lUAiowSh1yYXZbqiorsc843nU8PINlwL3eBmSfutoVFSlrrCLf/sudrClGkGMlh9j q8uA== X-Gm-Message-State: ALKqPwe7sb0MrK72p8WWHPxzp2bQG2gTzHavHjQ4owzqp8q1PHjaPHnD gH2z03oyi/BerYz1yFKVOdwJbnswpy3wVWqKVJw= X-Received: by 2002:ac8:3487:: with SMTP id w7-v6mr20006676qtb.220.1526939181586; Mon, 21 May 2018 14:46:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 14:46:21 -0700 (PDT) In-Reply-To: <1526903890-35761-11-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-11-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 00:46:21 +0300 Message-ID: Subject: Re: [PATCH 10/33] pata_hpt37x: use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List , Bartlomiej Zolnierkiewicz , Tejun Heo , linux-ide@vger.kernel.org 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://www.spinics.net/lists/linux-ide/msg55658.html > Cc: Bartlomiej Zolnierkiewicz > Cc: Tejun Heo > Cc: linux-ide@vger.kernel.org -- With Best Regards, Andy Shevchenko