Re: [PATCH V4]: HID: asus: add support for ASUS N-Key keyboard
flat view
From: Jiri Kosina <jikos@kernel.org>
Date: 2020-08-17 10:06:05
On Tue, 4 Aug 2020, Luke Jones wrote:
quoted
From 2b70c3daf1bd92f9163efb726e37fb3e0bcc8989 Mon Sep 17 00:00:00 2001From: Luke D Jones <luke@ljones.dev> Date: Thu, 30 Jul 2020 16:51:06 +1200 Subject: [PATCH] HID: asus: add support for ASUS N-Key keyboard Enable missing functionality of the keyboard found in many ASUS Zephyrus laptops: Fn key combos and hotkeys, keyboard backlight brightness control, and notify asus-wmi to toggle "fan-mode". Two input event codes are added for keyboard LED mode switching prev/next. The keyboard has many of the same key outputs as the existing G752 keyboard including a few extras, and varies a little between laptop models. Additionally the keyboard requires the LED interface to be intitialised before such things as keyboard backlight control work. Misc changes in scope: update some hardcoded comparisons to use an available define, change "Mic Toggle" to use a keycode that works. Signed-off-by: Luke D Jones <luke@ljones.dev>
[ ... snip ... ] This version of patch is ok when it comes to whitespace damage, but it has been line-wrapper instead; so if you could look into fixing that as well, it'd be great :) Thanks, -- Jiri Kosina SUSE Labs