Эх сурвалжийг харах

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>
Viresh Kumar 11 жил өмнө
parent
commit
3c5f885346

+ 1 - 2
include/linux/power_supply.h

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