power-supply: Forward declare structs together
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Sep 2014 12:01:25 +0000 (17:31 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 16 Sep 2014 09:01:28 +0000 (11:01 +0200)
power_supply.h requires to forward declare few structures. One of them is done
at the top of the file and other one just before it is used. Declare them
together for better readability.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
include/linux/power_supply.h

index de59a28b1b5b019032e8a296c68831bdaee1ddc8..3ed0496730229556921e3e77a5deeeecbb20bbac 100644 (file)
@@ -18,8 +18,6 @@
 #include <linux/spinlock.h>
 #include <linux/notifier.h>
 
-struct device;
-
 /*
  * All voltages, currents, charges, energies, time and temperatures in uV,
  * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise
@@ -175,6 +173,7 @@ union power_supply_propval {
        const char *strval;
 };
 
+struct device;
 struct device_node;
 
 struct power_supply {