瀏覽代碼

[BATTERY] Every file should include the headers containing the prototypes for its global functions.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Adrian Bunk 17 年之前
父節點
當前提交
25f12141e2
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      drivers/power/power_supply_leds.c
  2. 2 0
      drivers/power/power_supply_sysfs.c

+ 2 - 0
drivers/power/power_supply_leds.c

@@ -12,6 +12,8 @@
 
 
 #include <linux/power_supply.h>
 #include <linux/power_supply.h>
 
 
+#include "power_supply.h"
+
 /* Battery specific LEDs triggers. */
 /* Battery specific LEDs triggers. */
 
 
 static void power_supply_update_bat_leds(struct power_supply *psy)
 static void power_supply_update_bat_leds(struct power_supply *psy)

+ 2 - 0
drivers/power/power_supply_sysfs.c

@@ -14,6 +14,8 @@
 #include <linux/ctype.h>
 #include <linux/ctype.h>
 #include <linux/power_supply.h>
 #include <linux/power_supply.h>
 
 
+#include "power_supply.h"
+
 /*
 /*
  * This is because the name "current" breaks the device attr macro.
  * This is because the name "current" breaks the device attr macro.
  * The "current" word resolves to "(get_current())" so instead of
  * The "current" word resolves to "(get_current())" so instead of