From patchwork Wed Jun 15 13:50:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1939 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 EE50E24B33 for ; Wed, 15 Jun 2011 13:52:46 +0000 (UTC) Received: from mail-vx0-f180.google.com (mail-vx0-f180.google.com [209.85.220.180]) by fiordland.canonical.com (Postfix) with ESMTP id BA5AEA18957 for ; Wed, 15 Jun 2011 13:52:46 +0000 (UTC) Received: by vxk12 with SMTP id 12so410262vxk.11 for ; Wed, 15 Jun 2011 06:52:46 -0700 (PDT) Received: by 10.52.112.106 with SMTP id ip10mr794128vdb.127.1308145966228; Wed, 15 Jun 2011 06:52:46 -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 em2cs126645vdc; Wed, 15 Jun 2011 06:52:45 -0700 (PDT) Received: by 10.227.174.13 with SMTP id r13mr636866wbz.81.1308145965290; Wed, 15 Jun 2011 06:52:45 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp05.smtpout.orange.fr [80.12.242.127]) by mx.google.com with ESMTP id d17si1381033wbh.82.2011.06.15.06.52.44; Wed, 15 Jun 2011 06:52:45 -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 wDsa1g00D1hMfSL03DskEC; Wed, 15 Jun 2011 15:52:44 +0200 From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org Subject: [powerdebug 18/22] cleanup the headers Date: Wed, 15 Jun 2011 15:50:52 +0200 Message-Id: <1308145856-6112-18-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> Make some cleanup around the headers. Signed-off-by: Daniel Lezcano --- clocks.c | 5 +++++ display.c | 4 ++++ powerdebug.c | 6 +++++- powerdebug.h | 24 +----------------------- regulator.c | 2 ++ regulator.h | 3 +-- 6 files changed, 18 insertions(+), 26 deletions(-) diff --git a/clocks.c b/clocks.c index 86ae948..684bf88 100644 --- a/clocks.c +++ b/clocks.c @@ -22,6 +22,11 @@ #include #undef _GNU_SOURCE #endif +#include +#include +#include +#include +#include #include #include diff --git a/display.c b/display.c index 92fc02a..3c79737 100644 --- a/display.c +++ b/display.c @@ -13,6 +13,10 @@ * - initial API and implementation *******************************************************************************/ +#include +#include +#include +#include #include "powerdebug.h" #include "regulator.h" #include "display.h" diff --git a/powerdebug.c b/powerdebug.c index 0b25860..5d834c7 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -15,7 +15,11 @@ #include #include -#include +#include +#include +#include +#include +#include #include "regulator.h" #include "display.h" #include "clocks.h" diff --git a/powerdebug.h b/powerdebug.h index df39a8a..fb066ce 100644 --- a/powerdebug.h +++ b/powerdebug.h @@ -13,32 +13,10 @@ * - initial API and implementation *******************************************************************************/ -#include -#include -#include -#include -#include -#include -#include -#include - #define VERSION "0.4.1" -#define TOTAL_FEATURE_WINS 3 /* Regulator, Clock and Sensor (for now) */ -enum {CLOCK, REGULATOR, SENSOR}; -enum {CLOCK_SELECTED = 1, REFRESH_WINDOW}; +enum { CLOCK, REGULATOR, SENSOR }; extern void find_parents_for_clock(char *clkname, int complete); -extern int display_print_line(int window, int line, char *str, - int bold, void *data); - -extern int display_refresh_pad(int window); -extern int display_reset_cursor(int window); -extern void *display_get_row_data(int window); -extern int clock_toggle_expanded(void); -extern int regulator_display(void); -extern void print_sensor_header(void); -extern void print_clock_header(void); -extern void print_regulator_header(void); diff --git a/regulator.c b/regulator.c index 4b9d36e..696ed10 100644 --- a/regulator.c +++ b/regulator.c @@ -18,6 +18,8 @@ #include "regulator.h" #define SYSFS_REGULATOR "/sys/class/regulator" +#define VALUE_MAX 16 + #define _GNU_SOURCE #include #undef _GNU_SOURCE diff --git a/regulator.h b/regulator.h index 5f8c473..1b59a57 100644 --- a/regulator.h +++ b/regulator.h @@ -13,7 +13,6 @@ * - initial API and implementation *******************************************************************************/ -#define VALUE_MAX 16 - +extern int regulator_display(void); extern int regulator_init(void); extern int regulator_dump(void);