From patchwork Tue Mar 21 18:33:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9637331 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 9064E6020B for ; Tue, 21 Mar 2017 18:34:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 872FF28304 for ; Tue, 21 Mar 2017 18:34:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C0B02840E; Tue, 21 Mar 2017 18:34:19 +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 3451F28304 for ; Tue, 21 Mar 2017 18:34:19 +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=OsQ5+pBZA3ipAilIfZNqtMnpmYzRAWUVg6fzIyTavr4=; b=E2OyZDZrLAM4LWq6SMM5LVyYoN hJkdYDAq+VGn4b+/Bdex+MGCaFzS25STyA7zfZfLkJqpo0nDV74jBo/LysbzRqkztpN8VgKeVgNkd 4S0j76UtjwDCjpmxeZbMiBnHzEqizBpCBiJPoEr7sbqL8JFvLF3xBvzVJrdpVw29PkB8lNNzvse9R 6V2su1cwk4OhOkclxO/ezNhHdOHpdeFv2r1xarvIbVEGvPuZ4Jk2RPF2PZRh+3CN0StSPecVimRsA +24vccbhCGXEEcyhFEQifv45xiY8xr5MEf3b3sT5xsbSawLEfZCA/VyVPQoMR/zasRVEUydnlY5Rt 06mlGh+g==; 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 1cqObk-0000Nh-Ui; Tue, 21 Mar 2017 18:34:12 +0000 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqOba-00006Y-Mu for linux-amlogic@lists.infradead.org; Tue, 21 Mar 2017 18:34:05 +0000 Received: by mail-wr0-x233.google.com with SMTP id u48so117443341wrc.0 for ; Tue, 21 Mar 2017 11:33:41 -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=yqvrgF5bgNPnuj6//YJfh3M6l4lyaJ7HoR/db6J5TRM=; b=2FU+qS/d/RRCSBUN1L8JGnZT3kMH0xz0JO9u5SAw41+kewGTQki7THm0UZBqhZFDH1 wWtDgcXm5tceNQBML7t3rsb/HpZlHnA/S/xtl3vqCieeJyCs44tYIndyKugETBta8cIz M9D1ZZdLvwfh9YjH9SlL685WvE5hkSpHgp8L1HeHgj1KXwdCTpFtbn8aSF5uXzZYQNjV BLequsp6kd7lZrFd/PrKzAV7xtbSerVI/XnUQeaQ1i+gs1oBJI12EOeaSSjKTeRSK66k jsy3u6YalNCRFC9wcFb0cZRnyUlAMhg8TYhgweSl84d/fNmKMoRN2itHzIcW1Q60UhMJ RIvw== 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=yqvrgF5bgNPnuj6//YJfh3M6l4lyaJ7HoR/db6J5TRM=; b=HEbxr6qP9z+btvgs2tl9iWD3WsmQFRA3mLVyoQIbckkQBT5b7GO+bbdgX8I92BsArt x2LkS7y1XAPN+opOGJ2wkj0YWDH7jFVuYcD20l4i1FTvwM/HsLVRS2M+pSQ0e63vcvLo jWYT+9x0E664717YLDjdNXrSjys/yxpPnYsEFZfO6/8cK85kxTG/ErhAFlzElPn3/Wi4 +2ZV2WK7MbKGoBTG+ZZwiVH/nUn9SZZsXTzqowp0C/fKgMWebgGFV7kzoRJlhwlhSxe4 8siJTm0zKbmGx2CSY81GBe1DVIubfJK7vWuYGa3S7er3qcMF/sGIANML0HfJnHaBdRzy HTIQ== X-Gm-Message-State: AFeK/H0OxUBTXu2A3QPDH2MrQEz2P87Py3PJRRlbEjuFI15qoH/+zpmirBZz7MEH398s30Nk X-Received: by 10.223.169.45 with SMTP id u42mr30541466wrc.187.1490121220656; Tue, 21 Mar 2017 11:33:40 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id q12sm18667504wmd.8.2017.03.21.11.33.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Mar 2017 11:33:40 -0700 (PDT) From: Jerome Brunet To: Michael Turquette , Stephen Boyd , Kevin Hilman Subject: [RFC 6/7] clk: cosmetic changes to clk_summary debugfs entry Date: Tue, 21 Mar 2017 19:33:29 +0100 Message-Id: <20170321183330.26722-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170321183330.26722-1-jbrunet@baylibre.com> References: <20170321183330.26722-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170321_113403_047537_FF759F86 X-CRM114-Status: UNSURE ( 8.32 ) 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 50798ef618d1..ec6d57e97bac 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2167,7 +2167,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, @@ -2194,8 +2194,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();