Javier Martinez Canillas 13edb767aa hwmon: (scpi) Fix module autoload
If the driver is built as a module, autoload won't work because the module
alias information is not filled. So user-space can't match the registered
device with the corresponding module.

Export the module alias information using the MODULE_DEVICE_TABLE() macro.

Before this patch:

$ modinfo drivers/hwmon/scpi-hwmon.ko | grep alias
$

After this patch:

$ modinfo drivers/hwmon/scpi-hwmon.ko | grep alias
alias:          of:N*T*Carm,scpi-sensorsC*
alias:          of:N*T*Carm,scpi-sensors

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Fixes: ea98b29a05e9c ("hwmon: Support sensors exported via ARM SCP interface")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2016-12-02 13:28:02 -08:00
..
2016-11-13 10:22:07 -08:00
2016-11-16 11:10:58 -08:00
2016-11-16 20:46:32 +01:00
2016-12-02 13:28:02 -08:00
2016-11-17 13:53:02 -08:00
2016-10-21 21:40:29 +02:00
2016-09-27 12:33:47 +02:00
2016-10-07 21:23:40 -07:00
2016-11-05 10:52:29 -07:00
2016-11-25 20:57:21 -05:00
2016-11-16 12:39:57 -07:00
2016-10-07 21:23:40 -07:00
2016-11-11 17:02:01 -08:00
2016-10-06 17:03:49 -07:00
2016-11-22 13:48:05 -08:00
2016-10-14 11:07:42 -07:00
2016-11-13 10:13:33 -08:00
2016-11-18 15:49:31 +01:00
2016-11-01 09:04:04 -06:00
2016-10-24 19:52:24 -07:00