diff mbox

[04/15] power-supply: Forward declare structs together

Message ID d6239b171cf2073271fc7676668c892b892b7628.1409831636.git.viresh.kumar@linaro.org
State Accepted
Commit 3c5f8853469d3e549799808b9bf639b5d32751f0
Headers show

Commit Message

Viresh Kumar Sept. 4, 2014, 12:01 p.m. UTC
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>
---
 include/linux/power_supply.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index f3dea41..8c18412 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -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
@@ -172,6 +170,7 @@  union power_supply_propval {
 	const char *strval;
 };
 
+struct device;
 struct device_node;
 
 struct power_supply {