mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
Newer revisions of the ChromeOS EC add more events besides the keyboard ones. So handle interrupts in the MFD driver and let consumers register for notifications for the events they might care. To keep backward compatibility, if the EC doesn't support MKBP event, we fall back to the old MKBP key matrix host command. Cc: Randall Spangler <[email protected]> Cc: Vincent Palatin <[email protected]> Cc: Benson Leung <[email protected]> Signed-off-by: Vic Yang <[email protected]> Signed-off-by: Tomeu Vizoso <[email protected]> Tested-by: Enric Balletbo i Serra <[email protected]> Acked-by: Olof Johansson <[email protected]> Signed-off-by: Lee Jones <[email protected]>