[Intel-gfx] [PATCH RESEND 5/7] drm/i915/panel: setup pwm backlight based on connector type

Daniel Vetter daniel at ffwll.ch
Wed Mar 16 15:48:13 UTC 2016


On Wed, Mar 16, 2016 at 12:43:33PM +0200, Jani Nikula wrote:
> Use the connector type instead of VBT directly to decide which backlight
> mechanism to use on VLV/CHV. (Indirectly, this is the same thing, but
> hides the VBT use.)
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>

> ---
>  drivers/gpu/drm/i915/intel_panel.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
> index 0fe059bc7d80..8c8996fcbaf5 100644
> --- a/drivers/gpu/drm/i915/intel_panel.c
> +++ b/drivers/gpu/drm/i915/intel_panel.c
> @@ -1743,7 +1743,7 @@ intel_panel_init_backlight_funcs(struct intel_panel *panel)
>  		panel->backlight.get = pch_get_backlight;
>  		panel->backlight.hz_to_pwm = pch_hz_to_pwm;
>  	} else if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv)) {
> -		if (dev_priv->vbt.has_mipi) {
> +		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;
> -- 
> 2.1.4
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list