iio: Export I2C module alias information
The I2C drivers have an i2c_device_id array but that information isn't exported to the modules using the MODULE_DEVICE_TABLE() macro. So the modules autoloading won't work if the I2C device is registered using OF or legacy board files due missing alias information in the modules. The issue was found using Kieran Bingham's coccinelle semantic patch: https://lkml.org/lkml/2016/5/10/520 Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Este commit está contenido en:

cometido por
Jonathan Cameron

padre
194dc4c714
commit
cdd469ad9e
@@ -401,6 +401,7 @@ static const struct i2c_device_id hp206c_id[] = {
|
||||
{"hp206c"},
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, hp206c_id);
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id hp206c_acpi_match[] = {
|
||||
|
Referencia en una nueva incidencia
Block a user