]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm87) Add OF device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 13 Apr 2017 00:21:39 +0000 (21:21 -0300)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 13 Apr 2017 13:09:26 +0000 (06:09 -0700)
commitfbcbed29d65a6d3876721596d44241d4a7a1b9cd
treed7f2987e566e61bb8f84bee92a33862c65b661bf
parent40904c8a13185eb58e154bddd2f49563b5a96e7d
hwmon: (lm87) Add OF device ID table

The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. This is working on the assumption that a
I2C device registered via OF will always match a legacy I2C device ID and
that the MODALIAS reported will always be of the form i2c:<device>.

But this could change in the future so the correct approach is to have an
OF device ID table if the devices are registered via OF.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm87.c