From patchwork Thu Jan 10 17:18:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shayenne Moura X-Patchwork-Id: 10756311 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 320E391E for ; Thu, 10 Jan 2019 17:18:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1689829B1A for ; Thu, 10 Jan 2019 17:18:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A12829B6B; Thu, 10 Jan 2019 17:18:44 +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 BFE2429B1A for ; Thu, 10 Jan 2019 17:18:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF2586F3DF; Thu, 10 Jan 2019 17:18:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by gabe.freedesktop.org (Postfix) with ESMTPS id ACE3D6F3DF for ; Thu, 10 Jan 2019 17:18:41 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id l12so14053701qtf.8 for ; Thu, 10 Jan 2019 09:18:41 -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=qN2LbJR3NsKZsQgqr5h9W8jkonbeONwWnW8fLuoI2NA=; b=Phi2Z5G1sr4Yip9c39x1DXaE5gNWXZMa1Y/Jw+d+iO9S4UlSb7jSi5iYTnLOlArjYM JsHMqDauDwpXYVA/5Gnh+LfxrMWoXepNFzg7Ckxr6IsTCwjmw1N8XDU7220AaS+4sjwk 1fBmaRHBCfCpBGhBSykY8UBmBpVbFsWX1n3GLMja6xW3VrcAyLd/ADMymWd/Cj1EyUVy 7QtaHsS/Hk6GR9eLmYbIrkyAkb9QZ6NaoEgKfD2k9AjYn0//L9uJGvtryLzqxhynNUKH SoZTc9bBkYvKb0zW2UcyUzq6LaghhJPx/BFDsHZUkNTkguPhmBTMML/ysqsaM/NSq1Eg Rdcg== X-Gm-Message-State: AJcUukedHnk01nYxPSZK0xglhxWSSwj7coXVEKqz5f7uPnk/vX+0FgdH eEj8eMf4T1FYGZgNjyMvXqM= X-Google-Smtp-Source: ALg8bN468vI5CuqdpExXWlx75nQNu8lzN80AirHQxYEKCv64N+4OgnKv+e85aAdWs5X87DqXVe3u5g== X-Received: by 2002:a0c:ad9a:: with SMTP id w26mr10553472qvc.39.1547140720800; Thu, 10 Jan 2019 09:18:40 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id d85sm7000154qkb.89.2019.01.10.09.18.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 09:18:40 -0800 (PST) Date: Thu, 10 Jan 2019 15:18:34 -0200 From: Shayenne Moura To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Rob Clark , Benjamin Gaignard , Vincent Abriou , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tomi Valkeinen , Neil Armstrong , Carlo Caione , Kevin Hilman Subject: [PATCH v3 5/7] drm: i915: Cleanup drm_display_mode print str Message-ID: <35ff563d8a3a7cc59b99b08c2d2f57364bd52f82.1547137815.git.shayenneluzmoura@gmail.com> 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 Reviewed-by: Jani Nikula --- Changes in v2: - Use DRM_MODE_FMT/ARG macros (Daniel) - Make the commit message more clear Changes in v3: - No changes 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,