From patchwork Mon Jun 12 19:44:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9782705 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 7830E602DA for ; Mon, 12 Jun 2017 19:45:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6805F27F86 for ; Mon, 12 Jun 2017 19:45:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CAC8284EE; Mon, 12 Jun 2017 19:45:32 +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 1AD2527F86 for ; Mon, 12 Jun 2017 19:45:32 +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=t/BaODmkTGJKx5C68XUzy1neE7fLWKdg1qf0JkjEzo4=; b=Nj3t79tJd49TuAGd6hbKxoHo7F 8VWiPDaMM0WrRlXyys3BahdznseJDK/0onHhaJ8UqMpP/XNHYpdC5h0YQnY2WGmgkbyfUze+PHLmX pYZDUlJ0kG9UHIbrtqb1B6TUyTSFXPUXXXQFlZkpk0nCbrFrlhJHHQlJ3vn0Ov07xCMn7XmkOYzp7 5fieiKJ4+q05CmyRjrlYWbUCH8iHPiYErfDR80VzoI46cwIRko7tZGCSZI+yRF72GHWCaTfr7J4bz mbfd5d+zTOg3xMDQFj7+Djm5CjZEJGcX18IGSvvlGfGVCvLlhriEWVDSGEyxATW8oT4vor5YHYnzX 2gJlKN8A==; 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 1dKVHB-0004vZ-Ac; Mon, 12 Jun 2017 19:45:25 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKVH5-0003RX-KY for linux-amlogic@lists.infradead.org; Mon, 12 Jun 2017 19:45:21 +0000 Received: by mail-wr0-x22c.google.com with SMTP id g76so108161485wrd.1 for ; Mon, 12 Jun 2017 12:44:59 -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=wZaZaGy94hVUCTaCT/bqTxgLsrULsB0xEuEGRhebLb4=; b=J8AMftncY/hD40HtX9AlEQS+imXvf727Aet2pJ+RB2V+4QapvZVn1aHWigd3YLtqis 1VjCOfJ9Jho+NTtEVPEAVAKhxxSlTyeEK+YyjsqMiS/8x3esfIuWP9heqqQwu0UN6C93 Z7lMAbx7Vi5kfk4Csom67u9uGK76vA1Si3ox5KQM2d5v0slQT2ZFr4IAgkgkHO2sEbgp GadV95BiQfepC10IQ0STeUcGKuzIDcaVF3SRzrGC+QjxUj9jmKM9qu9aVVinqKlVF2TM HdbIW4LMB5ruc5rsqXjRDj8nv7pG5oXT88A/ytZkDEdHg2oiYkLyuuiovEgHfmCON+cI YBNg== 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=wZaZaGy94hVUCTaCT/bqTxgLsrULsB0xEuEGRhebLb4=; b=JPK9uPY3XZ9dsc6y4x3UEl1NkuenX3TMX4da2QSPNCs+PL6yhpW7LZnv/InhJyxfxF E7jS13LtlCBUrbeeB5WRKkRUAVyRjlmOWtq2hzA+lnziqoYP3WeeZIBJSP0JQdsX/5e9 lL2gecDM2ViczyiqgaRxwK9ZmropgyqTkztOcRnWQ8+iiScjQRTXjY/odRg76ImkZXLs x6veQOqz8vLBJ7eZ78YDFsMXu+XqFKWvK0ZP+2ExfohW7lTNH4LtpJ++x5x+tOeuGGMA InW4xbp47DFDpRRUqee7onUPoRym0v0+0d0u++pRAf068Jgb1Tkv+J7+RtRWzEpvN9pg wbuQ== X-Gm-Message-State: AKS2vOwzCXaT6ZCt+JkEelebnLessr2lJkV6pJd60e8WgYfnXOO2gLVZ SDdC1UuhYVKpOpUL X-Received: by 10.223.155.141 with SMTP id d13mr371615wrc.117.1497296697081; Mon, 12 Jun 2017 12:44:57 -0700 (PDT) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id 70sm13250797wmu.28.2017.06.12.12.44.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 12:44:56 -0700 (PDT) From: Jerome Brunet To: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH v3 08/10] clk: cosmetic changes to clk_summary debugfs entry Date: Mon, 12 Jun 2017 21:44:36 +0200 Message-Id: <20170612194438.12298-9-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170612194438.12298-1-jbrunet@baylibre.com> References: <20170612194438.12298-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170612_124519_936309_C33ABBD9 X-CRM114-Status: UNSURE ( 8.84 ) 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: Boris Brezillon , Kevin Hilman , Linus Walleij , Russell King , linux-amlogic@lists.infradead.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 253f1d3f0971..8d57e130c4e0 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2262,7 +2262,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, @@ -2289,8 +2289,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();