Input: pmic8xxx-pwrkey - support shutdown
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 17 Jul 2015 21:59:18 +0000 (14:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 23 Jul 2015 21:58:35 +0000 (14:58 -0700)
commit02b0b79c30076aaa33ee9134546130eb62b88078
treebf57e95ba2c18334e0de04fbda3067200fa00b9f
parentc57d5621d2f2dc238f4b9c4d00b2a54187a75445
Input: pmic8xxx-pwrkey - support shutdown

On pm8xxx PMICs, shutdown and restart are signaled to the PMIC via a pin
called PS_HOLD. When this pin goes low, the PMIC performs a configurable
power sequence. Add a .shutdown hook so that we can properly configure this
power sequence for shutdown or restart depending on the system state.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pmic8xxx-pwrkey.c