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: 9782681 X-Patchwork-Delegate: sboyd@codeaurora.org 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 D8776602DA for ; Mon, 12 Jun 2017 19:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAE9F284EE for ; Mon, 12 Jun 2017 19:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFC0A286B7; Mon, 12 Jun 2017 19:44:59 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 70DE8284EE for ; Mon, 12 Jun 2017 19:44:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbdFLTo7 (ORCPT ); Mon, 12 Jun 2017 15:44:59 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:35058 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbdFLTo6 (ORCPT ); Mon, 12 Jun 2017 15:44:58 -0400 Received: by mail-wr0-f176.google.com with SMTP id q97so111397476wrb.2 for ; Mon, 12 Jun 2017 12:44:57 -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=NiCXFWCyzsGI1ieDG4aD7V7nwa7i/L1rs6MqqhCD7hEHu1DXjMHIx0tGkOlm0Pitf6 Vnll/v/IQPUaV92Qyf+7smTc1RNXwc+QEwXLGYkVbSFetIzzI53ysb2/+mOzMhhsSQM8 vE4+ZcOkuWw9XHJgGvECJWMbWWK6Rwy8jpSfTn6V2pzJCROM9MCOJ0YEcm1QUyyME60R CFTsRNwA5C1AFcJK8PP/QaLQzJ40JGvTqpHUUM6TYqxHS4uCo9p8bvBQffTcvCar8/or fKFsYUtqCI/y6Qt/iJEiMfayn/CkjwppJQOJQbVBGZLLN1UdlnrsSQGKBD7hLe7KwCyI BAIw== X-Gm-Message-State: AKS2vOxiYJH5rFnr/rn3bQC/5ImrX1ZApiG6pfXQrfNpc2vsRLVHDX2y xzzDD1XYdGtIHIyo 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 Cc: Jerome Brunet , Kevin Hilman , linux-amlogic@lists.infradead.org, Russell King , Linus Walleij , Boris Brezillon 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> 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 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();