Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11954071ybi; Fri, 26 Jul 2019 02:23:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ9UTjNEs/0BteDOZ93aCwWFNGXxOUI1YEVEJII9j8tWQZReYfREvE0G5LhjyYYWgZUwI7 X-Received: by 2002:a65:4189:: with SMTP id a9mr63617373pgq.399.1564133003802; Fri, 26 Jul 2019 02:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564133003; cv=none; d=google.com; s=arc-20160816; b=WulqS6kB3HJuQjl+TPTbkp+KvoJMwfKg7mUwXe4a31ZlhlppsBvoY7N3n5L7TwstU1 uTBpQ1B4CrvG/rvYEVvte9Mwqkl5o51INTx+L5rCJ2nYftCxFYx3F2gpa109hl0GT61D Uj7uMSis7rVBJykWWv1qGlqZwAlk14pIOkUMw7+z9D4KaPkn1xa/OsniUqkT6xrY3d+K QH+nXOSXYPMOIuRulqcIrNJn+W4xeoc3pPZ7ew5iUVlHfLnTMnIC0SlAZgYt3oOr8+uN IZiBBWf8QujwbsmmZT3t+ngvH36QLTYutdKZTLEg4zuOUVzg4nmMFlLhdD2CD8mcOClV a3Ww== 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=nu+vr61P6tj3rJCDbEwc7V0DmturNb0LMD2k0z3Ofh0=; b=Lq3Cyrl5ffHMCJ0L8JD2dZ4Lx5xI6XLhK/lxhN5idTeGqc8IejpS7wTJCRjwy26Jt/ 8dgtD4CQWsDlnh/YpW740lr0qDUI6Y7hVxxZYTlm64K8uWwgQ4YHuyQP7DsUZGsy4GPi jR6Rk5WPvvJQ6r3rAjZj4JRxSzVAvvy8CI151wlJln5puTZWfkQFVoF+AbZvmkr4bPBP ZA2CSP3WzNWGouwFtPaYjyMtNH5QC/PiU4uMigK227k2pEEzXiN2Z7OoEQCHlyBkFLiB 9rjMqQWZzccyGPglHnsDlznM3TBaQTVxWASZZvzhftUWLNnxSPw0Rxrj+nmwPtYd3QHk IhAg== 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 v66si20106348pgb.584.2019.07.26.02.23.08; Fri, 26 Jul 2019 02:23: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726516AbfGZJVr (ORCPT + 99 others); Fri, 26 Jul 2019 05:21:47 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:59338 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfGZJVr (ORCPT ); Fri, 26 Jul 2019 05:21:47 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 36EF2FB02; Fri, 26 Jul 2019 11:21:45 +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 Pzp7XX_0MVCj; Fri, 26 Jul 2019 11:21:44 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 3841746A9F; Fri, 26 Jul 2019 11:21:43 +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 2/3] drm/panel: jh057n00900: Move mipi_dsi_dcs_set_display_off to disable() Date: Fri, 26 Jul 2019 11:21:42 +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 | 10 +++++++--- 1 file changed, 7 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..cc89831e30a6 100644 --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c @@ -158,19 +158,23 @@ 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); + int ret; + + ret = backlight_disable(ctx->backlight); + if (ret < 0) + return ret; - return 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