mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-14 01:08:23 +01:00
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From dbf607d6716dd0a314d734cfd9423601d6c5a99d Mon Sep 17 00:00:00 2001
|
|
From: OpenEmbedded <oe.patch@oe>
|
|
Date: Wed, 6 Dec 2023 18:01:24 +0100
|
|
Subject: [PATCH] Input: axp20x-pek - allow wakeup after shutdown
|
|
|
|
---
|
|
drivers/input/misc/axp20x-pek.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c
|
|
index 4581606a2..7217dc6ed 100644
|
|
--- a/drivers/input/misc/axp20x-pek.c
|
|
+++ b/drivers/input/misc/axp20x-pek.c
|
|
@@ -393,6 +393,11 @@ static const struct dev_pm_ops axp20x_pek_pm_ops = {
|
|
.resume_noirq = pm_sleep_ptr(axp20x_pek_resume_noirq),
|
|
};
|
|
|
|
+static void axp20x_pek_shutdown(struct platform_device *pdev)
|
|
+{
|
|
+ axp20x_pek_suspend(&pdev->dev);
|
|
+}
|
|
+
|
|
static const struct platform_device_id axp_pek_id_match[] = {
|
|
{
|
|
.name = "axp20x-pek",
|
|
@@ -408,6 +413,7 @@ MODULE_DEVICE_TABLE(platform, axp_pek_id_match);
|
|
|
|
static struct platform_driver axp20x_pek_driver = {
|
|
.probe = axp20x_pek_probe,
|
|
+ .shutdown = axp20x_pek_shutdown,
|
|
.id_table = axp_pek_id_match,
|
|
.driver = {
|
|
.name = "axp20x-pek",
|
|
--
|
|
2.43.0
|
|
|