From patchwork Sun May 21 21:59:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9739469 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 7C5C66034C for ; Sun, 21 May 2017 22:00:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DDBA285C9 for ; Sun, 21 May 2017 22:00:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62CA7285F3; Sun, 21 May 2017 22:00:24 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02F42285C9 for ; Sun, 21 May 2017 22:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756946AbdEUWAX (ORCPT ); Sun, 21 May 2017 18:00:23 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34901 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755502AbdEUWAX (ORCPT ); Sun, 21 May 2017 18:00:23 -0400 Received: by mail-wm0-f45.google.com with SMTP id b84so278410113wmh.0 for ; Sun, 21 May 2017 15:00:22 -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=EJTuiqx58+zHXgYSH5uzQVb5xPRqR4FcynBGD2iU9+Y=; b=ldDVZxhciOeLq7sYs0+8G5cqgyxsU70wW5tqlZYF6b0wpraa4Vfien40+J0WYD6gZO Mjy8f+UnRyH8n9MaA+loy61i+Lv5BthO9ExkwKjLk66v44gKNbBFzlbrTG7HWuf9RyWm 5PYIJhwL22HBdrs3MCYPF8MYv3Yq/Mo/PKqUDQKeLO8VHQ1TvzhNO/p+GBrzBtQhRnB9 vtvntydyzeBxkIcuDA30IVkD2SGg7zGM8Buv3Z1/YmVj5Y9/lsQy5JlFubBAZvATA2MI jUU1iy7Xd/eRpEBLNg78U8tX4b6Jga07BCx3HdGncTHZIjy8A3s6hAsJAH5JOa78ymTO qU1w== 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=EJTuiqx58+zHXgYSH5uzQVb5xPRqR4FcynBGD2iU9+Y=; b=qjNzoFMppnPvclgda4EZzienK4wFp9SEeA3DCmMxrFLV7IIAhpQY1yfco+1QMUkj93 UAqHbKpp7HxE8TiTpozPJkCtSvaoDQ4li/KXe+6FvNzLVwmNWBP9jVpchJvMCthr1Nke myhTS+Yg8Qwsj7Sa59JWa9n41lM20bEN7XK7igCLaH0aFWwXOumQxYqFWcDt2zKeF04b YLH26GhcfrfvSZvsXpyXUopHhE03wvHsCuRAaK969UkCj5zWO4UwdiPj6JboF1N0cwwV nAMdxdxGGVbr3G1Tkjt4WlnmLxiLso00kJcjg9ue8PEGMzsUQo3LTa32KU91dnGN6m+H wvoA== X-Gm-Message-State: AODbwcA1ZMewVc4Yun6FTkTkaRrN1rQxSAsMYqROuQ3+iGlSgDdFhCbS qMNwhVd8BKCquphv X-Received: by 10.28.217.1 with SMTP id q1mr20200583wmg.23.1495404021822; Sun, 21 May 2017 15:00:21 -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 a73sm12812579wrc.58.2017.05.21.15.00.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 15:00:21 -0700 (PDT) From: Jerome Brunet To: Michael Turquette , Stephen Boyd , Kevin Hilman Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, Linus Walleij , Boris Brezillon Subject: [PATCH v2 08/11] clk: cosmetic changes to clk_summary debugfs entry Date: Sun, 21 May 2017 23:59:55 +0200 Message-Id: <20170521215958.19743-9-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170521215958.19743-1-jbrunet@baylibre.com> References: <20170521215958.19743-1-jbrunet@baylibre.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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 71b0480a152b..955dae044f11 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();