Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp260925ybi; Fri, 26 Jul 2019 09:16:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa2HKUXQSWWX5O4E6DrOUn6Sv5eFeaHIZbZGXRZWlDMhRhK6KoG15G3XsHS96o5SdBsEzt X-Received: by 2002:a63:6c02:: with SMTP id h2mr91994293pgc.61.1564157792747; Fri, 26 Jul 2019 09:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564157792; cv=none; d=google.com; s=arc-20160816; b=yV9RiwceCmxe/7yuxft1aB0ohdGS6f19c79Qd3FOYHW8YvudttQZoEWKfhXNhX9bQN NJYqmuuRl5VBzolq6q1VQluGKBGX90fsvOdrf4dXU//Sy/kBatmV6iTCW7cyv5oJ7a28 MeHHmhOxtn0lmKshRfFCLTQVZ0bL7XaE9lkizsSOP25Ka/5FsH6jUxVQGtDw6kjf0pJz GJ0k1t9jKKOPpnF78aI6EZJ/2Tus3r0QWWHhqH872vt0sHb+Kiz5ImCUg3FtsgE+SeF4 jYtv2J6NCyrAth3gJvlhAgfckA35HIDM+UzsxQtBnHXqPwwkHLcoldQbv7V7UcQJ4FTp +zfQ== 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:to:from; bh=+PL46AIk4K72d9m6bQW55pONrXQ0T2aR9HzyCcqcQSs=; b=SqV9APj0gg0hRfItMV0WP77Jcoc9qWz2hlcBX+dOm+pLETvDsIHyprWrqdmBnx3G0O f/DGFW05Qbgr5GfVpZ8aqQeAQ0bHUMVhzVjmb2m8dL3Bz+BCWGmYKm/jFyDDSkQPPgTg Aof25fg19wzOsj9DZ2rrmOmY1IuX5uPUrJosviLtFuymYqWA1XO5EApkcXEKFmZmNASv odZMDsJ/KubtsEekKtyCjgsIiOMulUhe/hieYSq0C60nTu7ylnH8BksQ/GJramkm3vuI 4v8CERtv1ooDu1tvhgcd8n/tvS4M1j9GWXGj2VFyRMCxV75J/u9wZcVzUlHPbaZHPXV1 MOrA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 29si17535669pgl.129.2019.07.26.09.16.15; Fri, 26 Jul 2019 09:16:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727163AbfGZNO5 (ORCPT + 99 others); Fri, 26 Jul 2019 09:14:57 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:36338 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfGZNOq (ORCPT ); Fri, 26 Jul 2019 09:14:46 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 082F9FB02; Fri, 26 Jul 2019 15:14:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rl7091_wxe66; Fri, 26 Jul 2019 15:14:42 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 1A20646AA0; Fri, 26 Jul 2019 15:14:40 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] drm/panel: jh057n00900: Move mipi_dsi_dcs_set_display_off to disable() Date: Fri, 26 Jul 2019 15:14:37 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This makes it symmetric with the panel init happening in enable(). Signed-off-by: Guido Günther --- drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c index c6b4bfd79fde..fed24c51d48b 100644 --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c @@ -158,19 +158,19 @@ static int jh057n_enable(struct drm_panel *panel) static int jh057n_disable(struct drm_panel *panel) { struct jh057n *ctx = panel_to_jh057n(panel); + struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); - return backlight_disable(ctx->backlight); + backlight_disable(ctx->backlight); + return mipi_dsi_dcs_set_display_off(dsi); } static int jh057n_unprepare(struct drm_panel *panel) { struct jh057n *ctx = panel_to_jh057n(panel); - struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); if (!ctx->prepared) return 0; - mipi_dsi_dcs_set_display_off(dsi); regulator_disable(ctx->iovcc); regulator_disable(ctx->vcc); ctx->prepared = false; -- 2.20.1