thinkpad-acpi: Fix procfs hotkey reset command
echo "reset" > /proc/acpi/ibm/hotkey should do something non-useless, so instead of setting it to Fn+F2, Fn+F3, Fn+F5, set it to hotkey_recommended_mask. It is not like it will survive for much longer, anyway. 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:
committed by
Len Brown
parent
06777be6d8
commit
20c9aa46f6
@ -3569,7 +3569,8 @@ static int hotkey_write(char *buf)
|
||||
hotkey_enabledisable_warn(0);
|
||||
res = -EPERM;
|
||||
} else if (strlencmp(cmd, "reset") == 0) {
|
||||
mask = hotkey_orig_mask;
|
||||
mask = (hotkey_all_mask | hotkey_source_mask)
|
||||
& ~hotkey_reserved_mask;
|
||||
} else if (sscanf(cmd, "0x%x", &mask) == 1) {
|
||||
/* mask set */
|
||||
} else if (sscanf(cmd, "%x", &mask) == 1) {
|
||||
|
Reference in New Issue
Block a user