summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/gpio
diff options
context:
space:
mode:
authorAntheas Kapenekakis <lkml@antheas.dev>2026-01-22 08:50:38 +0100
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-01-28 14:02:26 +0200
commit2b92b797a153258c9f17786c2ab28b568f5aadf3 (patch)
tree8828abd76b41332631e5d30c62b181e3ab8dc19e /include/linux/platform_data/gpio
parente82ae34af29e910c96d33c8b3a90c60e27f1625e (diff)
HID: asus: move vendor initialization to probe
ROG NKEY devices have multiple HID endpoints, around 3-4. One of those endpoints has a usage page of 0xff31, and is the one that emits keyboard shortcuts and controls RGB/backlight. Currently, this driver places the usage page check under asus_input_mapping and then inits backlight in asus_input_configured which is unnecessarily complicated and prevents probe from performing customizations on the vendor endpoint. Simplify the logic by introducing an is_vendor variable into probe that checks for usage page 0xff31. Then, use this variable to move backlight initialization into probe instead of asus_input_configured, and remove the backlight check from asus_input_mapping. Acked-by: Benjamin Tissoires <bentiss@kernel.org> Reviewed-by: Denis Benato <benato.denis96@gmail.com> Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev> Link: https://patch.msgid.link/20260122075044.5070-6-lkml@antheas.dev Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'include/linux/platform_data/gpio')
0 files changed, 0 insertions, 0 deletions