From patchwork Wed Dec 19 21:28:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shayenne Moura X-Patchwork-Id: 10738149 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 28F4D1399 for ; Wed, 19 Dec 2018 21:28:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18FB728673 for ; Wed, 19 Dec 2018 21:28:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CC0428716; Wed, 19 Dec 2018 21:28:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8A9628678 for ; Wed, 19 Dec 2018 21:28:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 417ED6F1AF; Wed, 19 Dec 2018 21:28:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by gabe.freedesktop.org (Postfix) with ESMTPS id 746516F1AF for ; Wed, 19 Dec 2018 21:28:23 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id y78so12565878qka.12 for ; Wed, 19 Dec 2018 13:28:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hep8fWC7PXeGKqq4nDejgH8vpvSUZlLt51OOLamFztU=; b=kdI72uJl1yn6t1p6RLw1Qv9seo7+Gc9Od+3wmOgxXcJuJUcfNouTIHvUGUR1jB1A8g xnlgCmfUAnnl9Dg8O7rN2NQFjwCzWKY/QnfNdf/hzzptBinLsgyl4+48iWboHrN6dMA6 SbgZVSC3p4VWI89jDS0vdqBc7/M9OTGt2rvqXuSA146BW+gwx0kJsZXVnSDLg0ZwE0cN x4ZnBgyATwioU663f49y2GVRdGE1bHgg9C2t5l6JLjNhBMTaXgmczkElNsHVb9ujDklB foBfqhJF4/c1sdNeKTbin6nkqf4OWJwJdaTA81RUUXXqILo5uyB6Www7wEmWqgYWz3qF AvCQ== X-Gm-Message-State: AA+aEWYLduJKQ84sEv1XheoMI4i8t2zo+gJbQDlccQp+yRn6+MA7sQc/ l7nzL6q96gowgoH44zATBJIJ/N0sFfU= X-Google-Smtp-Source: AFSGD/V0EzPW0RAfO5zH71wPZPurgIr2E5bDmhZmWY+vesZsgEmQTn9szBny1lll+CwMTYaCJeK2uQ== X-Received: by 2002:a37:6517:: with SMTP id z23mr21877053qkb.161.1545254902574; Wed, 19 Dec 2018 13:28:22 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id 5sm3006519qtw.50.2018.12.19.13.28.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Dec 2018 13:28:22 -0800 (PST) Date: Wed, 19 Dec 2018 19:28:17 -0200 From: Shayenne Moura To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie Subject: [PATCH 5/7] drm: i915: Cleanup drm_display_mode print str Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch adjust the print string of drm_display_mode object to remove drm_mode_object dependency in i915 files. It modifies the print style to standardize the use of DRM_MODE_FMT. Signed-off-by: Shayenne Moura --- drivers/gpu/drm/i915/i915_debugfs.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 7f455bca528e..a63d084c8e96 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2948,14 +2948,7 @@ static void intel_seq_print_mode(struct seq_file *m, int tabs, for (i = 0; i < tabs; i++) seq_putc(m, '\t'); - seq_printf(m, "id %d:\"%s\" freq %d clock %d hdisp %d hss %d hse %d htot %d vdisp %d vss %d vse %d vtot %d type 0x%x flags 0x%x\n", - mode->base.id, mode->name, - mode->vrefresh, mode->clock, - mode->hdisplay, mode->hsync_start, - mode->hsync_end, mode->htotal, - mode->vdisplay, mode->vsync_start, - mode->vsync_end, mode->vtotal, - mode->type, mode->flags); + seq_printf(m, DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); } static void intel_encoder_info(struct seq_file *m,