From patchwork Thu May 18 16:38:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9734791 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 DB476601C8 for ; Thu, 18 May 2017 16:38:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA904285EC for ; Thu, 18 May 2017 16:38:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF7F628812; Thu, 18 May 2017 16:38: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=-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 B3187285EC for ; Thu, 18 May 2017 16:38:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932494AbdERQiR (ORCPT ); Thu, 18 May 2017 12:38:17 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37888 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbdERQiP (ORCPT ); Thu, 18 May 2017 12:38:15 -0400 Received: by mail-wm0-f47.google.com with SMTP id v15so58896565wmv.1 for ; Thu, 18 May 2017 09:38:14 -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=3YU9dPMPjHDBmwS1TXUVi9A13uaKXZCz433QbAnJb5c=; b=Zzwd2SLekFO+CIW9CqyRRw6ds0Peop3HiQjoGy3HbyxWOCXRam5Lmy1OJcjgni42YT Dxo4Sb4wwJiDK06jtqmqXd3vwVi82AvS2OO9GyJ0Il5HFSGcSYC7bJ0jEb1coS8kNtC0 yt/qqWhGHgWZR4ae4uVV0/CRrBvkvK+T45UUc4ZXXE5YRopLuls2md9mJHLQKIKhFjAi CFa1POJkWqW7iFWsgmnBjRVVMAIB9BRAPjcVlfHUblvvrbRTtkaKIIr5Omqi9qMfO4Zc yHzPoQ6qjRVgDI9Hf7ApX6ymwTvQNGsRcCeYcPIiaSROJJlC9moo1ASRDav9zHddOvI3 Tk8w== 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=3YU9dPMPjHDBmwS1TXUVi9A13uaKXZCz433QbAnJb5c=; b=I9e8WQ6JHBq8wtsPmGHKUTr+oXFEWnp4SnRvIe9b+kddpecGfDR5OJ/5BpbL4Z6Wef SC2W87cRH3i6xFOkrwf1aZycg4ZFYX8ML+/oXDUaFcuhqr0/jQuKXicDEHDjpsNC+dt9 dSjAwMqjjIF/qTirkr+8m26VXWWWlAoVg0dfH/lxmy/Uujk5tsrqwZVqrFTfrfhLnoSx c2ouirNy/O06uLccDQ6Y416thtNf4IVx20jOJ02CibdvdVgN2HykvwrOhYsMtgyY6bZW G1T5dNv0KwkbqLlR3WeMvzEfMo36+9BVmdyA8/LYRM3jUd/ctPqH+q8OcLMA5+AP1kFG tXTA== X-Gm-Message-State: AODbwcC1PZIeiO4/I9/E5R1jwt/uZ8salT18LgxSG20TwewAiglXLg/h lDGOp9w77RMrMTo8 X-Received: by 10.28.168.201 with SMTP id r192mr3657974wme.43.1495125493999; Thu, 18 May 2017 09:38:13 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 4sm7357655wrv.33.2017.05.18.09.38.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 09:38:13 -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 Subject: [PATCH 07/10] clk: cosmetic changes to clk_summary debugfs entry Date: Thu, 18 May 2017 18:38:01 +0200 Message-Id: <20170518163804.14123-8-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170518163804.14123-1-jbrunet@baylibre.com> References: <20170518163804.14123-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 d61218d1f41e..e60d86d7c082 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2234,7 +2234,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, @@ -2261,8 +2261,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();