summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2018-05-30 16:31:31 +0530
committerAmit Pundir <amit.pundir@linaro.org>2018-07-11 12:29:29 +0530
commite65af6db7f56c805128b59ce251c95aa5c15af52 (patch)
treec5b5aa3efcf22a6df5a691310f151655e7956683
parent154c7e4bd6040955cb770318e092e00bb3ef1291 (diff)
input: pm8941-pwrkey: Add resin entry
Since handling is abstracted in this driver, we need to add resin entry in id table along with pull_up_offset value Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/input/misc/pm8941-pwrkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c
index 1797194b2a5e..36c431709355 100644
--- a/drivers/input/misc/pm8941-pwrkey.c
+++ b/drivers/input/misc/pm8941-pwrkey.c
@@ -41,6 +41,7 @@
#define PON_PULL_CTL 0x70
#define PON_RESIN_PULL_UP BIT(0)
#define PON_KPDPWR_PULL_UP BIT(1)
+#define PON_RESIN_PULL_UP BIT(0)
#define PON_DBC_CTL 0x71
#define PON_DBC_DELAY_MASK 0x7
@@ -356,6 +357,7 @@ static int pm8941_pwrkey_remove(struct platform_device *pdev)
static const struct of_device_id pm8941_pwr_key_id_table[] = {
{ .compatible = "qcom,pm8941-pwrkey", .data = (void *)(PON_KPDPWR_PULL_UP) },
+ { .compatible = "qcom,pm8941-resin", .data = (void *)(PON_RESIN_PULL_UP) },
{ }
};
MODULE_DEVICE_TABLE(of, pm8941_pwr_key_id_table);