linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] Input: mt6779-keypad - fix module autoloading
@ 2024-08-27 12:34 Liao Chen
  2024-08-27 15:27 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Liao Chen @ 2024-08-27 12:34 UTC (permalink / raw)
  To: linux-input, linux-kernel, linux-arm-kernel, linux-mediatek
  Cc: mkorpershoek, dmitry.torokhov, matthias.bgg,
	angelogioacchino.delregno

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/input/keyboard/mt6779-keypad.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/keyboard/mt6779-keypad.c b/drivers/input/keyboard/mt6779-keypad.c
index 19f69d167fbd..6d2557a9b9f5 100644
--- a/drivers/input/keyboard/mt6779-keypad.c
+++ b/drivers/input/keyboard/mt6779-keypad.c
@@ -260,6 +260,7 @@ static const struct of_device_id mt6779_keypad_of_match[] = {
 	{ .compatible = "mediatek,mt6873-keypad" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, mt6779_keypad_of_match);
 
 static struct platform_driver mt6779_keypad_pdrv = {
 	.probe = mt6779_keypad_pdrv_probe,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] Input: mt6779-keypad - fix module autoloading
  2024-08-27 12:34 [PATCH -next] Input: mt6779-keypad - fix module autoloading Liao Chen
@ 2024-08-27 15:27 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2024-08-27 15:27 UTC (permalink / raw)
  To: Liao Chen
  Cc: linux-input, linux-kernel, linux-arm-kernel, linux-mediatek,
	mkorpershoek, matthias.bgg, angelogioacchino.delregno

On Tue, Aug 27, 2024 at 12:34:11PM +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>

Applied, thank you.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-27 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 12:34 [PATCH -next] Input: mt6779-keypad - fix module autoloading Liao Chen
2024-08-27 15:27 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).