iio: Export I2C module alias information in missing drivers
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 30 Jul 2015 16:18:28 +0000 (18:18 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Aug 2015 15:35:01 +0000 (16:35 +0100)
commit58e446fcc69436988fdab4a81981f44193f064f7
tree4641e0d6209b7fbcb00a453425a68f89a6faea0e
parent7868dfd216074fc5f902e7befacda2a0ec76e403
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>
drivers/iio/accel/stk8312.c
drivers/iio/accel/stk8ba50.c
drivers/iio/light/stk3310.c