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: 9739487 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 E60686034C for ; Sun, 21 May 2017 22:00:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6DB3285C9 for ; Sun, 21 May 2017 22:00:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBB8C285F3; Sun, 21 May 2017 22:00:58 +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 85995285C9 for ; Sun, 21 May 2017 22:00:58 +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=LIjgmt+VK5oxaVYRcXw1cUsb3vrwycJwr2telf/Oc9g=; b=uwPgRBEfJSS33c/aMUO2jis9Ag QxgTYZurD9xH7ZRkuANGwEKpbsGwz3gEfdzyPFq84LSEsulIOwodNdJt+F5Ows7fgGFPSaHNeLzCa y+QB15z6R02x/k7oHaBo8yT23CPBZUNvVTBeIvkEQv2sHvlQiVyvo1UmBb0G+s5z1RhwSHzDkTuXe Pro/kcOhEgwuyOa+M7zFJl87GqE0TMJwdgO1MkW8CUbFN/4+Q69jXYejek6TrV9IPZCD2M57FmTsn P5+kBafdGtmDTa/nh2fq/90dATd7niVOFR9eF3LK6Z5LTIVFT/eI8XbUHWA6F8xLtZDcW9rREnBQW A5V1Kjxg==; 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 1dCYuA-0002ZF-5B; Sun, 21 May 2017 22:00:50 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCYu0-0002M4-NO for linux-amlogic@lists.infradead.org; Sun, 21 May 2017 22:00:43 +0000 Received: by mail-wm0-x22e.google.com with SMTP id b84so278410111wmh.0 for ; Sun, 21 May 2017 15:00:23 -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=Ne2clxkIdB7cyVBravX5rxiHLsqbD2Otgf5NMJTuEIHttomEtlpkBtGSw3pJX9C++a FgS3Vk4lRnHmML1D+FT3xvBpKqK8xuc7K/Q3wzEhxvrbFBO/Q5pmg8hNtjJO0mGYdyci 3Cfh6pD2v2sJyuBJ945BC94HLCEjM2m3GDH2p2LjETAAMKfCR8WzPiRY6cE7CK5Qpto5 KJ8EmHbC8bi6bsR7RtMJQHk1/E80isLmncYbTBCUgMWV+HRtF0eXElEyCNN6wHMtovbW x26yg10MDgf0L40sT5xLRIKNBf/MNElxpi3AJ9osAbmWZfHeYpm4LANdT5Vkmg9bC4ec xVjQ== X-Gm-Message-State: AODbwcD1vvZAdU8xZINSlnCSh92b4u7zG5IgoBBsYeKj8qkQhWRhSlk4 VqI9Ja+x42FaVP3b 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170521_150041_074065_9457EB52 X-CRM114-Status: UNSURE ( 8.75 ) 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, Linus Walleij , Boris Brezillon , 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 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();