Skip to contentSkip to conversation

Input: qt1070 - Add MODULE_DEVICE_TABLE

PATCH Applied Axel Lin 2 participants 2 messages Apr 24, 2011 – Apr 28, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 Input: qt1070 - Add MODULE_DEVICE_TABLE

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

---
 drivers/input/keyboard/qt1070.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/input/keyboard/qt1070.c +1 -0
index fba8404..ca7b891 100644
@@ -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	= {
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Axel Lin

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

Applied, thanks Axel.

Signature · 1 line
Dmitry