summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorFrans Klaver <frans.klaver@xsens.com>2015-01-14 09:15:39 +0100
committerSebastian Reichel <sre@kernel.org>2015-01-20 13:58:28 +0100
commit818ca4c8c7be4910f896c702645009f09813347f (patch)
treef33234d6a4fb59ba8aa5750d6bacbcb1aaaad15d /drivers/char
parentpower: reset: ltc2952: reduce dependency on global variables (diff)
downloadlinux-818ca4c8c7be4910f896c702645009f09813347f.tar.xz
linux-818ca4c8c7be4910f896c702645009f09813347f.zip
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/char')
0 files changed, 0 insertions, 0 deletions