diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-09-04 17:31:25 +0530 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-09-16 11:01:28 +0200 |
commit | 3c5f8853469d3e549799808b9bf639b5d32751f0 (patch) | |
tree | d6eaaafba6098ea769436f9014b192c9273291f3 | |
parent | d8755dcf6b8107a31f4a573b6d7a4e414dd42415 (diff) | |
download | op-kernel-dev-3c5f8853469d3e549799808b9bf639b5d32751f0.zip op-kernel-dev-3c5f8853469d3e549799808b9bf639b5d32751f0.tar.gz |
power-supply: Forward declare structs together
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>
-rw-r--r-- | include/linux/power_supply.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index de59a28..3ed0496 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 @@ -175,6 +173,7 @@ union power_supply_propval { const char *strval; }; +struct device; struct device_node; struct power_supply { |