From patchwork Wed Dec 19 21:23:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shayenne Moura X-Patchwork-Id: 10738145 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 D726D1399 for ; Wed, 19 Dec 2018 21:23:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6C3A28617 for ; Wed, 19 Dec 2018 21:23:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BADE42870B; Wed, 19 Dec 2018 21:23:22 +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 80EA528617 for ; Wed, 19 Dec 2018 21:23:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AD8416F1AD; Wed, 19 Dec 2018 21:23:21 +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 B5F266F1AD for ; Wed, 19 Dec 2018 21:23:20 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id d19so23899909qtq.9 for ; Wed, 19 Dec 2018 13:23:20 -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=XzkhwghGCVn1vgSNbw7tDXcqZFIiE7WflmoMoTt9yJ8=; b=DrR/yk1kQqBS6kzt5x8dFOIMvT74CbANYNg8wvRYkXpk7TsYnD2PKbwMV+NWZVWD7a PgYOAQQmDjhgTFBf8yyXBWwBp7g07keswBBjzHIcuOH3HDlkKchdtNMI1imTbcLmzdF4 GPSuHND0jI6G0563x/WphFPfiQ5u8QxzFY2XvnEYAPZoln56hcXDJxMyR9l9ofTJTAtc pUqYI1wAUSUUexa0YfKaiSl1x3ical6FSpMGveTdlKI2gqqO8B5y926XBKHP+8YV7pik H9gAWAnfdJko2f7u8i0HBDFOseOM8FFzpP1crN84lPWBnvcpwdL3QrDUFpbhkf9as1Q5 BWRw== X-Gm-Message-State: AA+aEWZFH6ewTQRCMOgcXrOsQNGq7RwGhHT8yqrS01FrsiCbdW8cYEJe AQYadnB/NLxSgxWKnCgDuTI= X-Google-Smtp-Source: AFSGD/VRI/TpsaeG/P7KyxTvNqxbv4MyhY8nmEuAEfWj9dQEgwxrr80YpUe9rGtaxeW2Y8IjyIBu8g== X-Received: by 2002:ac8:270d:: with SMTP id g13mr24014624qtg.168.1545254599825; Wed, 19 Dec 2018 13:23:19 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id b75sm4037990qkh.4.2018.12.19.13.23.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Dec 2018 13:23:19 -0800 (PST) Date: Wed, 19 Dec 2018 19:23:15 -0200 From: Shayenne Moura To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie Subject: [PATCH 4/7] drm: sti: Cleanup drm_display_mode print str Message-ID: <76df09eb0af7aeb4deb48ba425f8a6f8635435e2.1545254191.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 sti files. Signed-off-by: Shayenne Moura --- drivers/gpu/drm/sti/sti_crtc.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c index ed76e52eb213..ec9f87483e39 100644 --- a/drivers/gpu/drm/sti/sti_crtc.c +++ b/drivers/gpu/drm/sti/sti_crtc.c @@ -53,18 +53,10 @@ sti_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode) struct clk *compo_clk, *pix_clk; int rate = mode->clock * 1000; - DRM_DEBUG_KMS("CRTC:%d (%s) mode:%d (%s)\n", - crtc->base.id, sti_mixer_to_str(mixer), - mode->base.id, mode->name); - - DRM_DEBUG_KMS("%d %d %d %d %d %d %d %d %d %d 0x%x 0x%x\n", - 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); + DRM_DEBUG_KMS("CRTC:%d (%s) mode: (%s)\n", + crtc->base.id, sti_mixer_to_str(mixer), mode->name); + + DRM_DEBUG_KMS(DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); if (mixer->id == STI_MIXER_MAIN) { compo_clk = compo->clk_compo_main;