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

iio: 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: Jonathan Cameron <jic23@kernel.org>

authored by

Javier Martinez Canillas and committed by
Jonathan Cameron
58e446fc 7868dfd2

+3
+1
drivers/iio/accel/stk8312.c
··· 662 662 {"STK8312", 0}, 663 663 {} 664 664 }; 665 + MODULE_DEVICE_TABLE(i2c, stk8312_i2c_id); 665 666 666 667 static const struct acpi_device_id stk8312_acpi_id[] = { 667 668 {"STK8312", 0},
+1
drivers/iio/accel/stk8ba50.c
··· 572 572 {"stk8ba50", 0}, 573 573 {} 574 574 }; 575 + MODULE_DEVICE_TABLE(i2c, stk8ba50_i2c_id); 575 576 576 577 static const struct acpi_device_id stk8ba50_acpi_id[] = { 577 578 {"STK8BA50", 0},
+1
drivers/iio/light/stk3310.c
··· 695 695 {"STK3311", 0}, 696 696 {} 697 697 }; 698 + MODULE_DEVICE_TABLE(i2c, stk3310_i2c_id); 698 699 699 700 static const struct acpi_device_id stk3310_acpi_id[] = { 700 701 {"STK3310", 0},