iio: Export I2C module alias information
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 17 May 2016 16:25:37 +0000 (12:25 -0400)
committerJonathan Cameron <jic23@kernel.org>
Sat, 21 May 2016 19:08:14 +0000 (20:08 +0100)
commitcdd469ad9e008a58ed465efa09f8594f1387e8ce
tree45b855635210acbda338ee5d866fe482b5f00933
parent194dc4c714132a63a7a731fe4debeccbdfab13e1
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>
drivers/iio/humidity/am2315.c
drivers/iio/humidity/htu21.c
drivers/iio/pressure/hp206c.c
drivers/iio/pressure/ms5637.c
drivers/iio/temperature/tsys02d.c