Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp552001pxk; Wed, 16 Sep 2020 10:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/aUWNtkTL8nflg7/His2z/iuOQjLw2hQxslsS0LIs7Tpthh3fY6f2svLnQrubVe9r6IAU X-Received: by 2002:a17:906:6b0b:: with SMTP id q11mr27551160ejr.412.1600277613204; Wed, 16 Sep 2020 10:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600277613; cv=none; d=google.com; s=arc-20160816; b=ZVUbLIB+5JdJB58QskEtZbBz5lwTMvgec7GTaX6FpAR4jXi2VSnamqJT0VXTfvrcVR u0BZlo7syT/czCWGhxOoy+mYNgvXfiF96yUdZ1kQr+zjtLAwxZ9Sy7kfupK2E4grI7n0 EERWPLH5O2VxQXpzXkEVcguMsOyH3+j+NC+qqDn6+R68IztYJcdMOBjB2if8CVQfP23j OLD4AJLNk0+jvVhHGTekMlYnBukbm7Et72rnRiMEnaBv9PFwC4lDEDuiyRy2uYI1wZhE V9K2mq7Cd1NBXxC7n34f8rYVVLcWHnJNmo95R3G4TQA2+6JAJ7s4cDsFJMPiv1ADwi9t xivg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n1lez62sfSsQdftfXDlxJ6noSF6UYRgTS9vyWDTEKb8=; b=zh4UUvZS3fcxByBR1CvCbWDh6rImGi3W/PKY6nKLzhAJw+3bGkcBioS8CwEjfl1B3e TKvZwyTlArJFZH0j1UHFmhtANcTJLtDa5VOZMfKlgU39MuajQb4Sk7AX+/6AUmDN5H9+ Bk/XVKPmk2oowXTKpJoC+sOAuMLI9+9TsV941LR0VIefQosM0mvkF6l+IfeL9S5mgRrR Zpjw12QYpHlNSRo/cZjCBT+3irjgNapK742hKD/qzdfnwGq9ymw0tBFJn/RqNEeODZ0R Se83/rhjVaqG6dKmIzdUHo9W2z0UngcPsjirVGvCO2yDa5COeLyHYdsMQobmH7YJnVaV NitQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KXicPxqE; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si12094777edv.103.2020.09.16.10.33.10; Wed, 16 Sep 2020 10:33:33 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=KXicPxqE; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727144AbgIPRaG (ORCPT + 99 others); Wed, 16 Sep 2020 13:30:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:48693 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727085AbgIPR2W (ORCPT ); Wed, 16 Sep 2020 13:28:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600277281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n1lez62sfSsQdftfXDlxJ6noSF6UYRgTS9vyWDTEKb8=; b=KXicPxqE7fKjQhXWp9CfLBFZLX+sxPlEz0RzCzSv20iZWJsko7N0dOEGXHOK+s2xFBhSL7 CC8Fvg7eLoaS99ggV+onLpm0QHTdKgwhM1rSOL8FYu5Q5fO/BcpwJNJQex9CSA1Q8Xw62E 7ZQQqOkrI+bkY8pVJctTFCYJvGbSbto= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-85-NFme99R0Myy804af0r5kxw-1; Wed, 16 Sep 2020 13:19:37 -0400 X-MC-Unique: NFme99R0Myy804af0r5kxw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 11B2E107465A; Wed, 16 Sep 2020 17:19:34 +0000 (UTC) Received: from Whitewolf.redhat.com (ovpn-120-66.rdu2.redhat.com [10.10.120.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3E14E1C4; Wed, 16 Sep 2020 17:19:32 +0000 (UTC) From: Lyude Paul To: intel-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, Jani Nikula , Ville Syrjala , Rodrigo Vivi , thaytan@noraisin.net, Vasily Khoruzhick , Joonas Lahtinen , David Airlie , Daniel Vetter , Hans de Goede , Chris Wilson , Manasi Navare , Arnd Bergmann , Wambui Karuga , linux-kernel@vger.kernel.org (open list) Subject: [RFC v2 2/8] drm/i915: Rename pwm_* backlight callbacks to ext_pwm_* Date: Wed, 16 Sep 2020 13:18:49 -0400 Message-Id: <20200916171855.129511-3-lyude@redhat.com> In-Reply-To: <20200916171855.129511-1-lyude@redhat.com> References: <20200916171855.129511-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we're going to need to add a set of lower-level PWM backlight control hooks to be shared by normal backlight controls and HDR backlight controls in SDR mode, let's add a prefix to the external PWM backlight functions so that the difference between them and the high level PWM-only backlight functions is a bit more obvious. This introduces no functional changes. Signed-off-by: Lyude Paul Reviewed-by: Rodrigo Vivi Cc: thaytan@noraisin.net Cc: Vasily Khoruzhick --- drivers/gpu/drm/i915/display/intel_panel.c | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_panel.c b/drivers/gpu/drm/i915/display/intel_panel.c index 9f23bac0d7924..c0e36244bb07d 100644 --- a/drivers/gpu/drm/i915/display/intel_panel.c +++ b/drivers/gpu/drm/i915/display/intel_panel.c @@ -589,7 +589,7 @@ static u32 bxt_get_backlight(struct intel_connector *connector) BXT_BLC_PWM_DUTY(panel->backlight.controller)); } -static u32 pwm_get_backlight(struct intel_connector *connector) +static u32 ext_pwm_get_backlight(struct intel_connector *connector) { struct intel_panel *panel = &connector->panel; struct pwm_state state; @@ -666,7 +666,7 @@ static void bxt_set_backlight(const struct drm_connector_state *conn_state, u32 BXT_BLC_PWM_DUTY(panel->backlight.controller), level); } -static void pwm_set_backlight(const struct drm_connector_state *conn_state, u32 level) +static void ext_pwm_set_backlight(const struct drm_connector_state *conn_state, u32 level) { struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; @@ -835,7 +835,7 @@ static void cnp_disable_backlight(const struct drm_connector_state *old_conn_sta tmp & ~BXT_BLC_PWM_ENABLE); } -static void pwm_disable_backlight(const struct drm_connector_state *old_conn_state) +static void ext_pwm_disable_backlight(const struct drm_connector_state *old_conn_state) { struct intel_connector *connector = to_intel_connector(old_conn_state->connector); struct intel_panel *panel = &connector->panel; @@ -1168,8 +1168,8 @@ static void cnp_enable_backlight(const struct intel_crtc_state *crtc_state, pwm_ctl | BXT_BLC_PWM_ENABLE); } -static void pwm_enable_backlight(const struct intel_crtc_state *crtc_state, - const struct drm_connector_state *conn_state) +static void ext_pwm_enable_backlight(const struct intel_crtc_state *crtc_state, + const struct drm_connector_state *conn_state) { struct intel_connector *connector = to_intel_connector(conn_state->connector); struct intel_panel *panel = &connector->panel; @@ -1890,8 +1890,8 @@ cnp_setup_backlight(struct intel_connector *connector, enum pipe unused) return 0; } -static int pwm_setup_backlight(struct intel_connector *connector, - enum pipe pipe) +static int ext_pwm_setup_backlight(struct intel_connector *connector, + enum pipe pipe) { struct drm_device *dev = connector->base.dev; struct drm_i915_private *dev_priv = to_i915(dev); @@ -2065,11 +2065,11 @@ intel_panel_init_backlight_funcs(struct intel_panel *panel) panel->backlight.hz_to_pwm = pch_hz_to_pwm; } else if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv)) { if (connector->base.connector_type == DRM_MODE_CONNECTOR_DSI) { - panel->backlight.setup = pwm_setup_backlight; - panel->backlight.enable = pwm_enable_backlight; - panel->backlight.disable = pwm_disable_backlight; - panel->backlight.set = pwm_set_backlight; - panel->backlight.get = pwm_get_backlight; + panel->backlight.setup = ext_pwm_setup_backlight; + panel->backlight.enable = ext_pwm_enable_backlight; + panel->backlight.disable = ext_pwm_disable_backlight; + panel->backlight.set = ext_pwm_set_backlight; + panel->backlight.get = ext_pwm_get_backlight; } else { panel->backlight.setup = vlv_setup_backlight; panel->backlight.enable = vlv_enable_backlight; -- 2.26.2