Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp67894ybi; Fri, 26 Jul 2019 06:15:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiz5Ai4wUpa0iFF8lysWka8MYLZkYm8UBsaCgS41Y51p199POpdS7/+HTnSXhUsfPuOBFd X-Received: by 2002:a17:90a:ae12:: with SMTP id t18mr100105137pjq.32.1564146943348; Fri, 26 Jul 2019 06:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564146943; cv=none; d=google.com; s=arc-20160816; b=IIJKXqraw37q0UCY+mHxCxW/Z5QaXTHTi+/F52/FIyUvHYaxj+e2plUdwaA0BnylCJ ekysMDAbqhWTUPon/dUImXF37jHytq0VhDJ+NjHYYCy6v6cRT7OjtoYOrp2rUNmo2wRi r8c1wIfTGUjYZPklW11t30Ttl5aUuimRCdYGZ2xGN1GP/aNSmK5EgOICaLO70B0clB/g XcqAcuucOHIdbbLrEyfbFJD54PLY6WtkhW+apxAnN1VS5EuvG/AwBm+42kmtNhGK+Ivq dV1hBrT/izO4H7Ag5UV990rD9gUnKHnCjxqkfozE0DfI/FkvIZ3lfp14vrHNuW/xdVOX gSrA== 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=rAA4QkWKIRJShacWC7seihE0kEWLUm/Wf65bNyiubZY=; b=qHe2ZfYXRwxEU8TzsPRe73/nC/ymjkGLI0O1C2+fCCUiFUr4d5FDNMpAERBacGKDft eemdjW0rHUxfdRJxNizV99fmAeDTtkHUp4YuKcG/m8CsJlZ6bMy7sS49xlDZgVi1kOQM VCmEZ1dF5ekNuhE6yJZMF3ugk61O1Co2W2Eot+3OuhTNyJpYYwwhq6Uici5AFKf8Pja3 h9stfpuZ/Ew+tlHJOQX+XPsPuZXA0FAR/rwIFcwVgvMA279CKRZ0A4s4v8Dx9UtWiKoh voZBN2AUUa0a7lufnb5kSTYDxK+P4FmivabnnE24VM+HrUCzwZkvGp/tjfhqtVoNgPdb Rovw== 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 33si18190532pli.144.2019.07.26.06.15.28; Fri, 26 Jul 2019 06:15:43 -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 S1726989AbfGZNOt (ORCPT + 99 others); Fri, 26 Jul 2019 09:14:49 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:36382 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbfGZNOr (ORCPT ); Fri, 26 Jul 2019 09:14:47 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id D2B1FFB04; Fri, 26 Jul 2019 15:14: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 Yg1X5hpL5aQt; Fri, 26 Jul 2019 15:14:44 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 3374D46AA4; 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 4/4] drm/panel: jh057n00900: Use drm_panel_{unprepare,disable} consistently Date: Fri, 26 Jul 2019 15:14:39 +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 We were already using the generic functions in our debugfs code, do the same in jh057n_shutdown. This was suggested by Sam Ravnborg. Signed-off-by: Guido Günther --- drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c index 1037a201b4bb..b9109922397f 100644 --- a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c @@ -372,12 +372,12 @@ static void jh057n_shutdown(struct mipi_dsi_device *dsi) struct jh057n *ctx = mipi_dsi_get_drvdata(dsi); int ret; - ret = jh057n_unprepare(&ctx->panel); + ret = drm_panel_unprepare(&ctx->panel); if (ret < 0) DRM_DEV_ERROR(&dsi->dev, "Failed to unprepare panel: %d\n", ret); - ret = jh057n_disable(&ctx->panel); + ret = drm_panel_disable(&ctx->panel); if (ret < 0) DRM_DEV_ERROR(&dsi->dev, "Failed to disable panel: %d\n", ret); -- 2.20.1