Signed-off-by: Daniel Lezcano <daniel.lezc...@linaro.org>
---
 clocks.c     |  1 -
 clocks.h     | 23 -----------------------
 display.c    |  1 -
 gpio.h       | 23 -----------------------
 powerdebug.c | 11 -----------
 powerdebug.h | 19 +++++++++++++++++++
 regulator.c  |  3 ---
 regulator.h  | 23 -----------------------
 sensor.c     |  1 -
 sensor.h     | 23 -----------------------
 10 files changed, 19 insertions(+), 109 deletions(-)
 delete mode 100644 clocks.h
 delete mode 100644 gpio.h
 delete mode 100644 regulator.h
 delete mode 100644 sensor.h

diff --git a/clocks.c b/clocks.c
index 4e34e0c..c751ec1 100644
--- a/clocks.c
+++ b/clocks.c
@@ -34,7 +34,6 @@
 
 #include "powerdebug.h"
 #include "display.h"
-#include "clocks.h"
 #include "tree.h"
 #include "utils.h"
 
diff --git a/clocks.h b/clocks.h
deleted file mode 100644
index b205a28..0000000
--- a/clocks.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Power debug tool (powerdebug)
- *
- * Copyright (C) 2016, Linaro Limited.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA.
- *
- */
-
-extern int clock_init(void);
-extern int clock_dump(char *clk);
diff --git a/display.c b/display.c
index 8aafc32..ed010b3 100644
--- a/display.c
+++ b/display.c
@@ -28,7 +28,6 @@
 #include <regex.h>
 #include "powerdebug.h"
 #include "mainloop.h"
-#include "regulator.h"
 #include "display.h"
 
 enum { PT_COLOR_DEFAULT = 1,
diff --git a/gpio.h b/gpio.h
deleted file mode 100644
index 9f51386..0000000
--- a/gpio.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Power debug tool (powerdebug)
- *
- * Copyright (C) 2016, Linaro Limited.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA.
- *
- */
-
-extern int gpio_init(void);
-extern int gpio_dump(void);
diff --git a/powerdebug.c b/powerdebug.c
index d4ce1f6..0f5c98a 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -27,11 +27,7 @@
 #include <errno.h>
 #include <ncurses.h>
 #include <signal.h>
-#include "regulator.h"
 #include "display.h"
-#include "clocks.h"
-#include "sensor.h"
-#include "gpio.h"
 #include "mainloop.h"
 #include "powerdebug.h"
 
@@ -102,13 +98,6 @@ static struct option long_options[] = {
        { 0, 0, 0, 0 }
 };
 
-struct powerdebug_options {
-       int flags;
-       unsigned int ticktime;
-       int selectedwindow;
-       char *clkname;
-};
-
 int getoptions(int argc, char *argv[], struct powerdebug_options *options)
 {
        int c;
diff --git a/powerdebug.h b/powerdebug.h
index 3603018..33463a0 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -20,3 +20,22 @@
  */
 
 #define VERSION "0.7.3"
+
+struct powerdebug_options {
+       int flags;
+       unsigned int ticktime;
+       int selectedwindow;
+       char *clkname;
+};
+
+extern int clock_init(void);
+extern int clock_dump(char *clk);
+
+extern int regulator_init(void);
+extern int regulator_dump(void);
+
+extern int gpio_init(void);
+extern int gpio_dump(void);
+
+extern int sensor_dump(void);
+extern int sensor_init(void);
diff --git a/regulator.c b/regulator.c
index dc29769..b38ddab 100644
--- a/regulator.c
+++ b/regulator.c
@@ -20,9 +20,6 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
-
-#include "regulator.h"
-
 #define SYSFS_REGULATOR "/sys/class/regulator"
 #define VALUE_MAX 16
 
diff --git a/regulator.h b/regulator.h
deleted file mode 100644
index b4b4f78..0000000
--- a/regulator.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Power debug tool (powerdebug)
- *
- * Copyright (C) 2016, Linaro Limited.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA.
- *
- */
-
-extern int regulator_init(void);
-extern int regulator_dump(void);
diff --git a/sensor.c b/sensor.c
index b4e6ba1..008b662 100644
--- a/sensor.c
+++ b/sensor.c
@@ -31,7 +31,6 @@
 
 #include "powerdebug.h"
 #include "display.h"
-#include "sensor.h"
 #include "tree.h"
 #include "utils.h"
 
diff --git a/sensor.h b/sensor.h
deleted file mode 100644
index d731fe0..0000000
--- a/sensor.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Power debug tool (powerdebug)
- *
- * Copyright (C) 2016, Linaro Limited.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA.
- *
- */
-
-extern int sensor_dump(void);
-extern int sensor_init(void);
-- 
1.9.1

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to