From patchwork Wed Jun 15 13:50:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1927 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 841C624B33 for ; Wed, 15 Jun 2011 13:52:41 +0000 (UTC) Received: from mail-vw0-f52.google.com (mail-vw0-f52.google.com [209.85.212.52]) by fiordland.canonical.com (Postfix) with ESMTP id 52B6CA18972 for ; Wed, 15 Jun 2011 13:52:41 +0000 (UTC) Received: by mail-vw0-f52.google.com with SMTP id 16so416308vws.11 for ; Wed, 15 Jun 2011 06:52:41 -0700 (PDT) Received: by 10.52.175.197 with SMTP id cc5mr778483vdc.287.1308145961063; Wed, 15 Jun 2011 06:52:41 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.52.183.130 with SMTP id em2cs126631vdc; Wed, 15 Jun 2011 06:52:40 -0700 (PDT) Received: by 10.14.6.10 with SMTP id 10mr269912eem.117.1308145959443; Wed, 15 Jun 2011 06:52:39 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp05.smtpout.orange.fr [80.12.242.127]) by mx.google.com with ESMTP id g84si1404499wes.6.2011.06.15.06.52.38; Wed, 15 Jun 2011 06:52:39 -0700 (PDT) Received-SPF: neutral (google.com: 80.12.242.127 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.127; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.127 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.76.78]) by mwinf5d28 with ME id wDsa1g00D1hMfSL03DseCG; Wed, 15 Jun 2011 15:52:38 +0200 From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org Subject: [powerdebug 07/22] make the functions name consistent Date: Wed, 15 Jun 2011 15:50:41 +0200 Message-Id: <1308145856-6112-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1308145856-6112-1-git-send-email-daniel.lezcano@linaro.org> References: <1308145856-6112-1-git-send-email-daniel.lezcano@linaro.org> Signed-off-by: Daniel Lezcano --- clocks.c | 4 ++-- clocks.h | 4 ++-- powerdebug.c | 5 +++-- sensor.h | 3 +++ 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/clocks.c b/clocks.c index c86a39e..db219d8 100644 --- a/clocks.c +++ b/clocks.c @@ -332,7 +332,7 @@ int clock_init(void) * found in the files. Then print the result to the text based interface * Return 0 on success, < 0 otherwise */ -int read_and_print_clock_info(void) +int clock_display(void) { if (read_clock_info()) return -1; @@ -346,7 +346,7 @@ int read_and_print_clock_info(void) * @clk : a name for a specific clock we want to show * Return 0 on success, < 0 otherwise */ -int read_and_dump_clock_info(char *clk) +int clock_dump(char *clk) { int ret; diff --git a/clocks.h b/clocks.h index d66c061..ab3bd36 100644 --- a/clocks.h +++ b/clocks.h @@ -13,6 +13,6 @@ * - initial API and implementation *******************************************************************************/ -extern int maxy; - extern int clock_init(void); +extern int clock_display(void); +extern int clock_dump(char *clk); diff --git a/powerdebug.c b/powerdebug.c index 24db8c8..0eee7c5 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -19,6 +19,7 @@ #include "regulator.h" #include "display.h" #include "clocks.h" +#include "sensor.h" #include "powerdebug.h" void usage(void) @@ -275,7 +276,7 @@ int mainloop(struct powerdebug_options *options) if (enter_hit) clock_toggle_expanded(); - read_and_print_clock_info(); + clock_display(); enter_hit = false; } else find_parents_for_clock(clkname_str, @@ -317,7 +318,7 @@ static int powerdebug_dump(struct powerdebug_options *options) regulator_dump(); if (options->clocks) - read_and_dump_clock_info(options->clkname); + clock_dump(options->clkname); if (options->sensors) sensor_dump(); diff --git a/sensor.h b/sensor.h index 8537149..4be90e6 100644 --- a/sensor.h +++ b/sensor.h @@ -13,3 +13,6 @@ * - initial API and implementation *******************************************************************************/ +extern int sensor_dump(void); +extern int sensor_display(void); +extern int sensor_init(void);