Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: export I2C module alias information in missing drivers

The I2C core always reports the MODALIAS uevent as "i2c:<client name"
regardless if the driver was matched using the I2C id_table or the
of_match_table. So the driver needs to export the I2C table and this
be built into the module or udev won't have the necessary information
to auto load the correct module when the device is added.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Javier Martinez Canillas and committed by
Dmitry Torokhov
2e9e910e d257f298

+2
+1
drivers/input/misc/gp2ap002a00f.c
··· 267 267 { GP2A_I2C_NAME, 0 }, 268 268 { } 269 269 }; 270 + MODULE_DEVICE_TABLE(i2c, gp2a_i2c_id); 270 271 271 272 static struct i2c_driver gp2a_i2c_driver = { 272 273 .driver = {
+1
drivers/input/touchscreen/goodix.c
··· 384 384 { "GDIX1001:00", 0 }, 385 385 { } 386 386 }; 387 + MODULE_DEVICE_TABLE(i2c, goodix_ts_id); 387 388 388 389 #ifdef CONFIG_ACPI 389 390 static const struct acpi_device_id goodix_acpi_match[] = {