power: reset: msm: Clarify restart and poweroff
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 8 Jan 2018 03:33:13 +0000 (19:33 -0800)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 8 Jan 2018 17:04:43 +0000 (18:04 +0100)
commitfd8b8f17d820328c0a2a46653e44e12a8cd450ba
tree40008ce9e6ed16a0dad60a5d0f63d686d2232883
parent70a39e1075019eef753649ac01ed594ac9016be6
power: reset: msm: Clarify restart and poweroff

When PSHOLD in a Qualcomm platform is deasserted the PMIC will perform
either a power off or a restart of the system. The action to take is
configured in the PON block, which is controlled by a separate driver.

As the configuration logic was added to the pm8941-pwrkey driver the
comment in do_msm_poweroff() is no longer valid and the name
do_msm_restart() is misleading. Update the naming and drop the comment.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/reset/msm-poweroff.c