Commit 3c5f8853 authored by Viresh Kumar's avatar Viresh Kumar Committed by Sebastian Reichel

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent d8755dcf
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment