Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp820120imm; Mon, 21 May 2018 15:07:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWfwCMnU+uf7mEuPFhvdGIcYjSBr3Wq0ye0MVwk2Sw/eyiPCH90JmALNb9qdc90HiMooUt X-Received: by 2002:a62:5d99:: with SMTP id n25-v6mr21586043pfj.143.1526940440003; Mon, 21 May 2018 15:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526940439; cv=none; d=google.com; s=arc-20160816; b=tNsWOoPnXcL6DxHj9+hSyH7C8jCnCjTyo2TeAb3R4/BH7ClT10sH9PEB9OVC9VmlyT XlxjhGwaR7bDw6ylPfr4PX3tBK2NENs4YuK8BLtLPoDAbI5KEY919+dBJzB7BNhh0UBW GH1WAErKtRZp42dgUJTjq0epVtgUYoYlSVk3akKGuTG8E519zGD/2fhF6+TWpbPPplBA rrSpbKyd+DukuEZ8MG7YTH+fb7Tmn2VZMPMJ0nCw7QMzrtQZUXlNE7mWmziIM2fJppdP i7C07LUUC2IAbE1TZ+H7BeVtrPi2JOuxz95Ri2sXCjqEE87sHpGHi8KjRqiKYH21m4dv imCw== 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=PNCd98OBjTdk/+i1Csvsw2O+WjEW6Dk4G9euxFtbJks=; b=fx/YY8a1RlxuLvIh7Z8/5SfYbiwIZkjFM14+Fw5TdP43kUNKT7Ub+2jQD9QdQPk9ak 522zLNC66/cHVRv8msreaAsvuKxS1rIrZED937pG2cbqYuYKp4K8YYox4qK7megu8Bie cmIxm8vM5k8TZOKJHr4WQ2+HD3i1VclTFliIkPO5bL9SyaW4wTUQ6Xobgx7F1gnnFyd5 NjJ5/Xixcv2iFPR6tl83xmhMRG8xt2vUSUCNE/eUZP3JaULnI3N0iIjTL7QUBFid4U+C 7Q8BMnry9j0VLXUNI57XSxvjtI3ufXZ1YKfgzcSHFEDFbeFTWmDxOQfdIczqACA7T3rL UGzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u83zLB5i; 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 f16-v6si2600875pgn.464.2018.05.21.15.07.05; Mon, 21 May 2018 15:07:19 -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=u83zLB5i; 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 S1753981AbeEUWGK (ORCPT + 99 others); Mon, 21 May 2018 18:06:10 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:43816 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753490AbeEUWGF (ORCPT ); Mon, 21 May 2018 18:06:05 -0400 Received: by mail-qt0-f193.google.com with SMTP id f13-v6so20927328qtp.10 for ; Mon, 21 May 2018 15:06:04 -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=PNCd98OBjTdk/+i1Csvsw2O+WjEW6Dk4G9euxFtbJks=; b=u83zLB5i8nOM70mX3/JjhPp2CeoNaf3tFUD90Xvi0XTjQpn0k1U/Sgbp/4U6Xcy1gG CoB8kJZMpPSBv2YOO8OQTcfqNljV/YXbaopbI0y9zU7ec1yUZID/qHliG+bh/svEvwnr RhUeGw3pNpVNHBfgBXP2xZtVpR/q2PIS8OiYKFkcXVi/Sfyl5alBZXUTlrBn7p7Z5DJ/ MGMhxeyR5vqmnhUg1gfMK7BjrPIDeMjxRUf7G8U381RE+OE81Z7umyuXmJIAlJBsZfZM 15jbqylJ76/PfOWLDcLcb55Ng9KosGUVGNZ/kh2otlS53QVAtxZvWC6LNta8Lw1nrtCv hVew== 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=PNCd98OBjTdk/+i1Csvsw2O+WjEW6Dk4G9euxFtbJks=; b=a4Ve86KID9ZAINOCdbbU91LJVm4H1Ov9bvmHZJkmOto6ykj8z5v7ULINT1fjw87l+y W67ViX59sK1tinEoq0IlSFVtoJ+FCGWkbcQ+ytKE0LA97IK0HvDW87KnZAgSIpnJxTkZ xzXKVwFUzr1SQZi34E7rdCx3T8SY2oFcgBxQQnU9Zh7uXoxd1GZOh6eGWJSNNWUV1n+Y AJI3ITDLqPVkRIxY4634sh6togsW6igTE7mE/FlwtO4rURfVqG44c260ANvTJVpDYvdN 3dmNOFi5WR6JYneEKnki9tv8f5cEuP76HdnQrFHfDfhsNDTpv7juXhoAj/ivpvSzBxtY iL+A== X-Gm-Message-State: ALKqPweF1OdySqlqwsk0NDxKI7RHRctZy+Z3HN0V3/js0pZf4VvHtxBv /lO78bMtD60oJrom0WaVB9j06P2ixOuamHfH7NU= X-Received: by 2002:aed:2c43:: with SMTP id f61-v6mr20108278qtd.105.1526940364614; Mon, 21 May 2018 15:06:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 15:06:04 -0700 (PDT) In-Reply-To: <1526903890-35761-25-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-25-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 01:06:04 +0300 Message-ID: Subject: Re: [PATCH 24/33] drm: use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , dri-devel@lists.freedesktop.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:58 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://patchwork.kernel.org/patch/10382377/ > Cc: Gustavo Padovan > Cc: Maarten Lankhorst > Cc: Sean Paul > Cc: David Airlie > Cc: dri-devel@lists.freedesktop.org -- With Best Regards, Andy Shevchenko