Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5792163pxb; Tue, 16 Feb 2021 07:44:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJytG1pw2YX1B/+DWLpVmiTouLyl8NyrU7xeV4fG4vCsqTYlSF8eVo92wcVd9KmNJ4vJ46vz X-Received: by 2002:a05:6402:1914:: with SMTP id e20mr21441196edz.89.1613490245074; Tue, 16 Feb 2021 07:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613490245; cv=none; d=google.com; s=arc-20160816; b=f7S5Fmtrf2/6AjAjUxhE21YskF/TWEqax+7iqOa31uwjMv3Ot0kcMEN7ibxNofmZ/L /6K5hJAW5lBygs5/ZHpuRHra/PCet7fJAy0fOcbXlST94DCwNosyeGICNKblLbMmT0cL OvjLAFJ9mLu8E8Ynv/V0JkXnRBp4s7lawGA04gc8RZoN1dOMiaNkva+H7vFcxa682BQ2 qg3VQTkZptZ1ceLtxQQu+YaOMWKF1IvtC9VW2b+PpKqSzKEnRYuztvsVJGTR19F0caf0 5OLqYQWjnhoO+EnK+jwbUoGabSDWOnnnEZPGngwso4jOvRNzNw/m8RVwoTTD+vkURvcI seoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=JG9uWKvpbV1Cd8IaarecJYRe4VJqRgKnHB+UIjS2A8I=; b=Tb0TPd5IYq27AVWnA2IMp0TR8ElixAVtNrVlpdbKIdL7ohKn6VRp2f80TbmyQSxdU+ MPFBkCx6JQZwUCM/2odxvGfAbfivMDSi095EziasRQGnwA328xNwlMkOaTSBlaIS7k1v WgnrXqIEdtjLU58K8uT11Db2BI9GSTwjPyzeRx3knvoyF66Yix4RwAnmCK1L1YqxB0Zn IsHJMUoejx4w0RPaFTn4F+9UPQDfj4XM6x3IXz+DjBZ4ySVK1a2vSdL4twO+1fbLuZlL BQXkMUDCbRFidvnh9rbI7UTt9zA9v1E5JXOXFX2ThMzslOG13oruu/KZRZFrZi6LdObU 5ONQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=MZIAdTFn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si14069807ejn.727.2021.02.16.07.43.40; Tue, 16 Feb 2021 07:44:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=MZIAdTFn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbhBPPmx (ORCPT + 99 others); Tue, 16 Feb 2021 10:42:53 -0500 Received: from m12-14.163.com ([220.181.12.14]:50825 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbhBPPmw (ORCPT ); Tue, 16 Feb 2021 10:42:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=JG9uWKvpbV1Cd8Iaar ecJYRe4VJqRgKnHB+UIjS2A8I=; b=MZIAdTFnnI+5JK2Lasch2eoHgymL+m/oX9 bRvnooZbxbDSoA5QzjF85fEmnSkNAeB+QVJwONPHKS9eH7g9dyv+6rHi7a8cQNJG ldhBeDU2JWLdlUb7Cj1kxYK1lWsJxWPibAdO+vhnz2ZarVDC87Dv9SLxwo9qWZfQ lVhM1OtDk= Received: from localhost.localdomain (unknown [125.70.193.99]) by smtp10 (Coremail) with SMTP id DsCowABnjpr05itgrT+llA--.32407S2; Tue, 16 Feb 2021 23:38:38 +0800 (CST) From: Chen Lin To: ville.syrjala@linux.intel.com Cc: airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, rodrigo.vivi@intel.com, chen.lin5@zte.com.cn Subject: [v2] drm/i915: Use function pointer typedef long_pulse_detect_func in intel_get_hpd_pins Date: Tue, 16 Feb 2021 23:39:05 +0800 Message-Id: <1613489945-5875-1-git-send-email-chen45464546@163.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: X-CM-TRANSID: DsCowABnjpr05itgrT+llA--.32407S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw4fuw47Ar1xXrWrCFykXwb_yoW3uwb_WF 4UZrZrGrWDAFsI9F9xuws8JFyay343ua1kAwn2y3Zxta4xAwn3t3sFgryUXr4fXF13JFnx Jw4qgFsYyr4kGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0b4S5UUUUU== X-Originating-IP: [125.70.193.99] X-CM-SenderInfo: hfkh0kqvuwkkiuw6il2tof0z/xtbBRw47nlPAB0KDxAAAs9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Lin Use function pointer typedef long_pulse_detect_func in intel_get_hpd_pins. Signed-off-by: Chen Lin --- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 6cdb052..4339bad 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -1203,7 +1203,7 @@ static void intel_get_hpd_pins(struct drm_i915_private *dev_priv, u32 *pin_mask, u32 *long_mask, u32 hotplug_trigger, u32 dig_hotplug_reg, const u32 hpd[HPD_NUM_PINS], - bool long_pulse_detect(enum hpd_pin pin, u32 val)) + long_pulse_detect_func long_pulse_detect) { enum hpd_pin pin; -- 1.7.9.5