Input: omap4-keypad - use PM runtime autosuspend
authorTony Lindgren <tony@atomide.com>
Mon, 11 Jan 2021 06:16:51 +0000 (22:16 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 11 Jan 2021 06:23:04 +0000 (22:23 -0800)
commit29bf35e5ee808dbbcc8cff7a0bf6d4349148b586
treeaeefac004051e087053d0d764ef502050e2644fc
parent98b0c88d4bfb53b309350d9cdada96fd0deaa4af
Input: omap4-keypad - use PM runtime autosuspend

Implement PM runtime autosuspend support to prepare for adding handling to
clear stuck last pressed key in the following patches. The hardware has
support for autoidle and can wake up to keypress events.

Let's also update omap4_keypad_probe() to use dev instead of &pdev->dev
since we already have it from the earlier changes.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/X/vqCs5/EDURprAJ@atomide.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/omap4-keypad.c