From patchwork Thu May 18 16:38:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9734807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E111E601C8 for ; Thu, 18 May 2017 16:38:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF4A328775 for ; Thu, 18 May 2017 16:38:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C40EB28812; Thu, 18 May 2017 16:38:55 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E84E72879E for ; Thu, 18 May 2017 16:38:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=n8bWbRzxrY/kJ22QMxcF37GQx957gCtHEdm48nldoqU=; b=MKOYr3TfcihSNEbq6llBKTrElN /RLpBMW70W9vqodlkqV57NVPSlPfTWH2F2YgNN8baBeO3yKDjTO2W+JlWq/eJ6wYIMEW7IKyHeS8M Lbm0D3UeXdUi10ETrhuI/dsi1q58gYzmzVTOc0TNA3MPgiBaNakhoCKzFeJ4cQ3S2Q7c+8wXgR6sm 6dur0hm4nwEmYKJUE0Za5MFPudn9ioCJNNGqiWyYKaIRjxpMuCl3hJjAuQpkTJD1Ll8BdhMGx92XD cK08R9kO9iiS3M+ePFbAqiiv5PeOJWDFeoVvVwaaNukLZLOW7nKciy1XYjJTAOI7r55Qat45VjB3b n2BY67fA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBORo-0003Pq-4i; Thu, 18 May 2017 16:38:44 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBORf-0003G0-Lt for linux-amlogic@lists.infradead.org; Thu, 18 May 2017 16:38:37 +0000 Received: by mail-wm0-x22d.google.com with SMTP id d127so58625337wmf.0 for ; Thu, 18 May 2017 09:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3YU9dPMPjHDBmwS1TXUVi9A13uaKXZCz433QbAnJb5c=; b=Zzwd2SLekFO+CIW9CqyRRw6ds0Peop3HiQjoGy3HbyxWOCXRam5Lmy1OJcjgni42YT Dxo4Sb4wwJiDK06jtqmqXd3vwVi82AvS2OO9GyJ0Il5HFSGcSYC7bJ0jEb1coS8kNtC0 yt/qqWhGHgWZR4ae4uVV0/CRrBvkvK+T45UUc4ZXXE5YRopLuls2md9mJHLQKIKhFjAi CFa1POJkWqW7iFWsgmnBjRVVMAIB9BRAPjcVlfHUblvvrbRTtkaKIIr5Omqi9qMfO4Zc yHzPoQ6qjRVgDI9Hf7ApX6ymwTvQNGsRcCeYcPIiaSROJJlC9moo1ASRDav9zHddOvI3 Tk8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3YU9dPMPjHDBmwS1TXUVi9A13uaKXZCz433QbAnJb5c=; b=dr8PCBnDXH0araGPgswuZ3ARp/36oy+LO1Nfx1r+lgkW2Y+JTYjBSMKYWnabFhm76q O/qLj2FgNfw6MW+lymdYU/+VD0Dw62XEhyzycpqv39VhE5ruIZxt0yWRs3gae9bZUa4N CfgJTOjaST17aaUda9a897jVWB5Iw9wWlcmyvEFXZ5X6Rn4ycHxtO3ked8A2wOl9mOcm xw0elNgF+CnnOPAcusX8qfHWGvwniD3v6WDm3saA+38+07QvioGa5Ogw884Uyek0UblD tV2HUL5Z+ftRmfQYSERj+t6ency78coJY5scaJJeEoeUN12hgbLf/v82NpcPH++AXhmi 96Uw== X-Gm-Message-State: AODbwcDoVf+zGj4vnXOVAgfyUSmI51XIkHEGhueFiAczKcoYcjrN6yE1 e9ha3GnXx+mVYNM5 X-Received: by 10.28.168.201 with SMTP id r192mr3657974wme.43.1495125493999; Thu, 18 May 2017 09:38:13 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 4sm7357655wrv.33.2017.05.18.09.38.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 09:38:13 -0700 (PDT) From: Jerome Brunet To: Michael Turquette , Stephen Boyd , Kevin Hilman Subject: [PATCH 07/10] clk: cosmetic changes to clk_summary debugfs entry Date: Thu, 18 May 2017 18:38:01 +0200 Message-Id: <20170518163804.14123-8-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170518163804.14123-1-jbrunet@baylibre.com> References: <20170518163804.14123-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170518_093835_979152_DD098C2F X-CRM114-Status: UNSURE ( 8.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP clk_summary debugfs entry was already well over the traditional 80 characters per line limit but it grew even larger with the addition of clock protection. Signed-off-by: Jerome Brunet --- drivers/clk/clk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index d61218d1f41e..e60d86d7c082 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2234,7 +2234,7 @@ static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, if (!c) return; - seq_printf(s, "%*s%-*s %11d %12d %12d %11lu %10lu %-3d\n", + seq_printf(s, "%*s%-*s %7d %8d %8d %11lu %10lu %-3d\n", level * 3 + 1, "", 30 - level * 3, c->name, c->enable_count, c->prepare_count, c->protect_count, @@ -2261,8 +2261,9 @@ static int clk_summary_show(struct seq_file *s, void *data) struct clk_core *c; struct hlist_head **lists = (struct hlist_head **)s->private; - seq_puts(s, " clock enable_cnt prepare_cnt protect_cnt rate accuracy phase\n"); - seq_puts(s, "----------------------------------------------------------------------------------------------------\n"); + seq_puts(s, " enable prepare protect \n"); + seq_puts(s, " clock count count count rate accuracy phase\n"); + seq_puts(s, "----------------------------------------------------------------------------------------\n"); clk_prepare_lock();