power: reset: ltc2952: reduce dependency on global variables
authorFrans Klaver <frans.klaver@xsens.com>
Wed, 14 Jan 2015 08:15:38 +0000 (09:15 +0100)
committerSebastian Reichel <sre@kernel.org>
Tue, 20 Jan 2015 12:58:28 +0000 (13:58 +0100)
commita5f67be5200787aacc7143144bdab7efe7cd268a
treea0bc5b0d0b6a710442fca9b10188c61f9337a404
parent62113b31174a9dba99eda8a4222417dd526c7c79
power: reset: ltc2952: reduce dependency on global variables

Documentation/CodingStyle ch.4 mentions in a side node that global
variables should only be used if you really need them. Reduce the use of
the global instance of ltc2952_poweroff so we may eventually remove it
entirely.

While at it, rename ltc2952_poweroff_data to ltc2952_poweroff, just to
save that little bit of typing.

Signed-off-by: Frans Klaver <frans.klaver@xsens.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/ltc2952-poweroff.c