Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1298300imm; Tue, 22 May 2018 01:37:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqv/m8h7XZ01Ddn2GdFHkCGvA8og2mIF9eX2EXB3+y5aSSAMPIXRbnQbpYQBXYvrz3aqkzS X-Received: by 2002:a17:902:20e8:: with SMTP id v37-v6mr23447686plg.354.1526978243883; Tue, 22 May 2018 01:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526978243; cv=none; d=google.com; s=arc-20160816; b=xDXjhCYgC0oCSzCxqN2ZquG8JnzNMxsLHZh4gqTdmQAy3mGOX3N8kigsi9wQgJ+ew0 RmrBstEXrxpGpLscK0MDwqzb+qWTte7cHchjcM/5Py4mrw5EaRzA7tOv8wncuj/fiJQ8 drmCXGQZ3nPuVZfbgc7iaf2xPZ/3z2ap6t1osWRNxHNvRm6AcQZ+cBJSLs2FHbZz0geQ Xf6GQUpsbY5SdID1pCcOhYCYANeuy4jXBrSnwqUsOuqTM4yRdUpi0jJLJYrRiU161aS/ gEr89oG4E1E3s7rueOWy7zUefHShroSV66cS6gAzoKuT80waRVJ9qLcxnioaIlGWXI9D O+UA== 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:references :organization:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=1B1Tc/sPtN/FOJCgkDS6Dmc8Z5DWJN5Z2buk6YP1Sgg=; b=AAZAg7IuOtA33rIT/e7WiffGlTC1WMDUgz2HgnygSHJRJqpx/b9WHORllj3s17iD4g FZs4vgP7dNz/UqDHVQUFyCFNmV8dHqDQhU77a7p4cV/BJqodb2wb6i4S5H5f8hbApp8p 7f2AVv1++GkxZtZJrEzH5Kf2rkW7CsGfi4Mbwwy1ZgtaS1I96VpYN0RrTPfLLSsj90kx JC/Qu0rRGiR3+R753hKJS1yDezrZbz1paZN7D1j4P31uUvSz6MXsWaprkrolLiVZNa19 2sKEGp/qcelEFSHjqXhMwTL5lehPJGzEfzY6ze+YIi0tip+kTZAs7BPi5sSTqIzNTu4g vdOg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24-v6si15965460plr.302.2018.05.22.01.37.09; Tue, 22 May 2018 01:37:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751308AbeEVIgy (ORCPT + 99 others); Tue, 22 May 2018 04:36:54 -0400 Received: from mga09.intel.com ([134.134.136.24]:6386 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbeEVIgx (ORCPT ); Tue, 22 May 2018 04:36:53 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 01:36:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,429,1520924400"; d="scan'208";a="57390206" Received: from jnikula-mobl2.fi.intel.com (HELO localhost) ([10.237.72.62]) by fmsmga001.fm.intel.com with ESMTP; 22 May 2018 01:36:51 -0700 From: Jani Nikula To: Andy Shevchenko , Yisheng Xie Cc: David Airlie , Linux Kernel Mailing List , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 24/33] drm: use match_string() helper In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-25-git-send-email-xieyisheng1@huawei.com> Date: Tue, 22 May 2018 11:39:25 +0300 Message-ID: <87in7gw0ci.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 May 2018, Andy Shevchenko wrote: > 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/ 818c05d8e267 ("drm: panel-orientation-quirks: Convert to use match_string() helper") BR, Jani. > >> Cc: Gustavo Padovan >> Cc: Maarten Lankhorst >> Cc: Sean Paul >> Cc: David Airlie >> Cc: dri-devel@lists.freedesktop.org -- Jani Nikula, Intel Open Source Graphics Center