From: Viresh Kumar Date: Thu, 4 Sep 2014 12:01:25 +0000 (+0530) Subject: power-supply: Forward declare structs together X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c5f8853469d3e549799808b9bf639b5d32751f0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index de59a28b1b5b..3ed049673022 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -18,8 +18,6 @@ #include #include -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 {