[REFACTOR] energy: move lcd_mach_/init/exit()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 17 Oct 2013 18:35:29 +0000 (22:35 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 17 Oct 2013 18:48:43 +0000 (22:48 +0400)
move:
energy/lcd/lcd_base.h --> energy/lcd/lcd_base.c

Change-Id: Ic3cc56a53ba7bf7e9a5ad78315929d19d6728574
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
energy/lcd/lcd_base.c
energy/lcd/lcd_base.h

index 1e5d1b1..53204a5 100644 (file)
 #include "lcd_base.h"
 
 
+#ifdef CONFIG_ENEGRGY_LCD
+int lcd_mach_init(struct lcd_ops_set *ops_set, struct lcd_ops_get *ops_get);
+void lcd_mach_exit(void);
+#else /* CONFIG_ENEGRGY_LCD */
+static int lcd_mach_init(struct lcd_ops_set *ops_set, struct lcd_ops_get *ops_get)
+{
+       return -EPERM;
+}
+static void lcd_mach_exit(void)
+{
+}
+#endif /* CONFIG_ENEGRGY_LCD */
+
+
 int read_val(const char *path)
 {
        int ret;
index 4f4ec56..435590b 100644 (file)
@@ -39,19 +39,6 @@ struct lcd_ops_set {
 };
 
 
-#ifdef CONFIG_ENEGRGY_LCD
-int lcd_mach_init(struct lcd_ops_set *ops_set, struct lcd_ops_get *ops_get);
-void lcd_mach_exit(void);
-#else /* CONFIG_ENEGRGY_LCD */
-static int lcd_mach_init(struct lcd_ops_set *ops_set, struct lcd_ops_get *ops_get)
-{
-       return -EPERM;
-}
-void lcd_mach_exit(void)
-{
-}
-#endif /* CONFIG_ENEGRGY_LCD */
-
 int read_val(const char *path);
 int lcd_init(void);
 void lcd_exit(void);