linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: qt1070 - Add MODULE_DEVICE_TABLE
@ 2011-04-24 15:22 Axel Lin
  2011-04-28  6:25 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-04-24 15:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: Bo Shen, Dmitry Torokhov, linux-input

Adding the necessary MODULE_DEVICE_TABLE() information allows the
driver to be automatically loaded by udev

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/input/keyboard/qt1070.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/input/keyboard/qt1070.c b/drivers/input/keyboard/qt1070.c
index fba8404..ca7b891 100644
--- a/drivers/input/keyboard/qt1070.c
+++ b/drivers/input/keyboard/qt1070.c
@@ -248,6 +248,7 @@ static const struct i2c_device_id qt1070_id[] = {
 	{ "qt1070", 0 },
 	{ },
 };
+MODULE_DEVICE_TABLE(i2c, qt1070_id);
 
 static struct i2c_driver qt1070_driver = {
 	.driver	= {
-- 
1.7.1




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

* Re: [PATCH] Input: qt1070 - Add MODULE_DEVICE_TABLE
  2011-04-24 15:22 [PATCH] Input: qt1070 - Add MODULE_DEVICE_TABLE Axel Lin
@ 2011-04-28  6:25 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2011-04-28  6:25 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Bo Shen, linux-input

On Sun, Apr 24, 2011 at 11:22:45PM +0800, Axel Lin wrote:
> Adding the necessary MODULE_DEVICE_TABLE() information allows the
> driver to be automatically loaded by udev
> 

Applied, thanks Axel.

-- 
Dmitry

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

end of thread, other threads:[~2011-04-28  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-24 15:22 [PATCH] Input: qt1070 - Add MODULE_DEVICE_TABLE Axel Lin
2011-04-28  6:25 ` 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).