Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1297499imm; Tue, 22 May 2018 01:36:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqirpLDDyJetaQ7ytGE0cWxTICaMGVbrxbBVxY5GMyVSrhzbQ1aoczPdCfywqzHwwUb24NR X-Received: by 2002:a63:b046:: with SMTP id z6-v6mr17961769pgo.16.1526978183169; Tue, 22 May 2018 01:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526978183; cv=none; d=google.com; s=arc-20160816; b=K5JX9C+W+kSZwzo/NVhtyKMIsa33niMt2tK5FflhYR8gquZNwuzAv9FjdW2ODzSqQI ZFR7PjoAJcBRF6Gb0E23c/qXu1qqVTuFaSrohYp5bCitXcXHR/PfExNXBSpoZEKseW9k kE7cCUgC6ModMNJKby49WAZI41eNIwQ2w1M/GZI/tPAr1tscf78SeOEVZVzlW/3yEeOd bLXYf6wzGXR7biQ7T5xNK6bp4YRUagD81+McXpadeePpr3TwGhxiIpnOdJkKYxe+bS23 SKWOwTq48g31ODnhugLn6LhTuc7cAHmt7wIifWXvF021QeYmQRxtkeTMZnv+iDlzsguM +VRQ== 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=gNT3JJZA8IUkp17Mzv+5C0UG7hCs8qiUSUWuC/2r0zY=; b=nfuOv0/yW3BanbFKoqHhZktPg4ZRAppc5XQTM7vwVnNfLj0J8vSa2r7/eb7JSkJkMy BXKw3dB/dyDYxxBVMq9DT+Y8pZ3Rt6xfHXi5EUasIh7oixMx1f7qBCTOJlDPohPXox7x oLVaI8jfA/Tc8I0winL337aOYqnjZtzXD0wrXoEto1OO/TgJ+eeAQlOJRGlgpHa1oHBN COoYNVsxPLVBZrDzKBRVZZ9zhWqNOBKL3WPiX94ZmKOyXrdusygBDaemJLBklYubBR0o pIZnUZti+0+WgID/4h+EjI7IcxX67VeekGf3qh3ZO3+e83+cozLi1VlIzKvWolOOGnsN 1MFg== 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 4-v6si15921075pfb.204.2018.05.22.01.36.08; Tue, 22 May 2018 01:36: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 S1751354AbeEVIeD (ORCPT + 99 others); Tue, 22 May 2018 04:34:03 -0400 Received: from mga17.intel.com ([192.55.52.151]:50840 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbeEVId7 (ORCPT ); Tue, 22 May 2018 04:33:59 -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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 01:33:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,429,1520924400"; d="scan'208";a="57389652" Received: from jnikula-mobl2.fi.intel.com (HELO localhost) ([10.237.72.62]) by fmsmga001.fm.intel.com with ESMTP; 22 May 2018 01:33:56 -0700 From: Jani Nikula To: Andy Shevchenko , Yisheng Xie Cc: Linux Kernel Mailing List , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 22/33] drm/i915: 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-23-git-send-email-xieyisheng1@huawei.com> Date: Tue, 22 May 2018 11:36:30 +0300 Message-ID: <87lgccw0hd.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: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://patchwork.kernel.org/patch/10382323/ Even more convincingly, 47d4cb8ae8e7 ("i915: Convert to use match_string() helper") BR, Jani. > >> Cc: Jani Nikula >> Cc: Joonas Lahtinen >> Cc: Rodrigo Vivi >> Cc: David Airlie >> Cc: intel-gfx@lists.freedesktop.org >> Cc: dri-devel@lists.freedesktop.org -- Jani Nikula, Intel Open Source Graphics Center