linux/drivers/hwmon/pmbus
Javier Martinez Canillas 98b16a0986 hwmon: (max31785) 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.

Before this patch:

$ modinfo drivers/hwmon/pmbus/max31785.ko | grep alias
alias:          i2c:max31785a
alias:          i2c:max31785

After this patch:

$ modinfo drivers/hwmon/pmbus/max31785.ko | grep alias
alias:          i2c:max31785a
alias:          i2c:max31785
alias:          of:N*T*Cmaxim,max31785aC*
alias:          of:N*T*Cmaxim,max31785a
alias:          of:N*T*Cmaxim,max31785C*
alias:          of:N*T*Cmaxim,max31785

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-01-02 15:05:34 -08:00
..
adm1275.c driver: (adm1275) set the m,b and R coefficients correctly for power 2017-03-27 19:43:36 -07:00
ibm-cffps.c hwmon: (pmbus) Add IBM Common Form Factor (CFF) power supply driver 2017-08-29 18:06:18 -07:00
ir35221.c hwmon: (pmbus) Add client driver for IR35221 2017-06-11 17:08:19 -07:00
Kconfig pmbus: Add driver for Maxim MAX31785 Intelligent Fan Controller 2017-11-05 06:06:33 -08:00
lm25066.c hwmon: (pmbus/lm25066) Drop support for LM25063 2018-01-02 15:05:34 -08:00
ltc2978.c hwmon: (ltc2978) Add support for LTM4675 2015-08-19 09:08:55 -07:00
ltc3815.c hwmon: (pmbus) Add client driver for LTC3815 2015-12-18 08:20:59 -08:00
Makefile hwmon updates for v4.15 2017-11-13 08:55:46 -08:00
max8688.c hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00
max16064.c hwmon: (pmbus) Simplify remove functions 2012-03-18 18:27:46 -07:00
max20751.c hwmon: (pmbus) Add support for MAX20751 2015-08-09 13:44:27 -07:00
max31785.c hwmon: (max31785) Add OF device ID table 2018-01-02 15:05:34 -08:00
max34440.c hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00
pmbus_core.c hwmon: (pmbus) Add virtual page config bit 2018-01-02 15:05:34 -08:00
pmbus.c hwmon: (pmbus) move header file out of I2C realm 2017-06-11 17:08:19 -07:00
pmbus.h hwmon: (pmbus) Add virtual page config bit 2018-01-02 15:05:34 -08:00
tps40422.c hwmon: (pmbus) Add tps40422 front-end driver 2014-08-04 07:01:38 -07:00
tps53679.c hwmon: (pmbus) Add support for Texas Instruments tps53679 device 2017-08-30 18:01:08 -07:00
ucd9000.c hwmon: (pmbus) move header file out of I2C realm 2017-06-11 17:08:19 -07:00
ucd9200.c hwmon: (pmbus) move header file out of I2C realm 2017-06-11 17:08:19 -07:00
zl6100.c hwmon: (pmbus) Use BIT macro 2015-08-19 09:08:17 -07:00