diff options
author | Frans Klaver <frans.klaver@xsens.com> | 2015-01-14 09:15:39 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-01-20 13:58:28 +0100 |
commit | 818ca4c8c7be4910f896c702645009f09813347f (patch) | |
tree | f33234d6a4fb59ba8aa5750d6bacbcb1aaaad15d /drivers/power/lp8727_charger.c | |
parent | a5f67be5200787aacc7143144bdab7efe7cd268a (diff) |
power: reset: ltc2952: remove global variable poweroff_panic
As per Documentation/CodingStyle ch.4, we should keep global variables
to a mininum. Move the panic state into the driver data, regardless of
whether panic is a system state or not.
This removes the need for the custom _init and _exit functions, so
replace them with a call to the module_platform_driver() macro.
Signed-off-by: Frans Klaver <frans.klaver@xsens.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/lp8727_charger.c')
0 files changed, 0 insertions, 0 deletions