mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
thinkpad-acpi: simplify module autoloading
Simplify the module autoloading a great deal, by keying to the HID for the HKEY interface. Only _really_ ancient IBM ThinkPad models like the 240, 240x and 570 lack the HKEY interface, and they're getting their own trimmed-down driver one of these days. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
f68f53a217
commit
922fe097b1
@ -7860,6 +7860,15 @@ static int __init thinkpad_acpi_module_init(void)
|
||||
|
||||
MODULE_ALIAS(TPACPI_DRVR_SHORTNAME);
|
||||
|
||||
/*
|
||||
* This will autoload the driver in almost every ThinkPad
|
||||
* in widespread use.
|
||||
*
|
||||
* Only _VERY_ old models, like the 240, 240x and 570 lack
|
||||
* the HKEY event interface.
|
||||
*/
|
||||
MODULE_DEVICE_TABLE(acpi, ibm_htk_device_ids);
|
||||
|
||||
/*
|
||||
* DMI matching for module autoloading
|
||||
*
|
||||
@ -7872,16 +7881,10 @@ MODULE_ALIAS(TPACPI_DRVR_SHORTNAME);
|
||||
#define IBM_BIOS_MODULE_ALIAS(__type) \
|
||||
MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW*")
|
||||
|
||||
/* Non-ancient thinkpads */
|
||||
MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*");
|
||||
MODULE_ALIAS("dmi:bvnLENOVO:*:svnLENOVO:*:pvrThinkPad*:rvnLENOVO:*");
|
||||
|
||||
/* Ancient thinkpad BIOSes have to be identified by
|
||||
* BIOS type or model number, and there are far less
|
||||
* BIOS types than model numbers... */
|
||||
IBM_BIOS_MODULE_ALIAS("I[BDHIMNOTWVYZ]");
|
||||
IBM_BIOS_MODULE_ALIAS("1[0368A-GIKM-PST]");
|
||||
IBM_BIOS_MODULE_ALIAS("K[UX-Z]");
|
||||
IBM_BIOS_MODULE_ALIAS("I[MU]"); /* 570, 570e */
|
||||
|
||||
MODULE_AUTHOR("Borislav Deianov <borislav@users.sf.net>");
|
||||
MODULE_AUTHOR("Henrique de Moraes Holschuh <hmh@hmh.eng.br>");
|
||||
|
Loading…
Reference in New Issue
Block a user