Skip to content

fujitsu-laptop: use sparse keymaps for input event handling

Michał Kępień lkml platform-driver-x86 1 version Applied

Status from this message: Merged, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 20 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8platform/x86: fujitsu-laptop: move backlight input device setup to a separate functiondrivers/platform/x86/fujitsu-laptop.c+38 -262 replies
2/8platform/x86: fujitsu-laptop: switch to a managed backlight input devicedrivers/platform/x86/fujitsu-laptop.c+14 -331 reply
3/8platform/x86: fujitsu-laptop: use a sparse keymap for brightness key event generationdrivers/platform/x86/Kconfig drivers/platform/x86/fujitsu-laptop.c+16 -160 replies
4/8platform/x86: fujitsu-laptop: move hotkey input device setup to a separate functiondrivers/platform/x86/fujitsu-laptop.c+43 -311 reply
5/8platform/x86: fujitsu-laptop: switch to a managed hotkey input devicedrivers/platform/x86/fujitsu-laptop.c+19 -360 replies
6/8platform/x86: fujitsu-laptop: use a sparse keymap for hotkey event generationdrivers/platform/x86/fujitsu-laptop.c+41 -703 replies
7/8platform/x86: fujitsu-laptop: model-dependent sparse keymap overridesdrivers/platform/x86/fujitsu-laptop.c+55 -561 reply
8/8platform/x86: fujitsu-laptop: remove keycode fields from struct fujitsu_bldrivers/platform/x86/fujitsu-laptop.c+0 -60 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJonathan Woithe
SeriesR-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] fujitsu-laptop: use sparse keymaps for input event handling

This series simplifies handling of both brightness key and hotkey input events on Fujitsu laptops by making use of sparse keymaps. This not only makes the driver shorter and, hopefully, cleaner, but also enables us to get rid of the keycodeX fields inside struct fujitsu_bl, which facilitates further cleanups. Also, to simplify error handling, input devices registered by fujitsu-laptop are migrated to the devres API along the way.

This series was tested on a Lifebook S7020 and a Lifebook E744.

This series depends on the platform cleanup series I posted last week. While that series has not yet been merged into testing, Jonathan has reviewed it and Darren also seemed to be okay with it, so I just assumed it will get merged soon. I wanted to post this one as soon as possible as it requires a bit more thorough review and testing compared to the previous series I posted for fujitsu-laptop.

 drivers/platform/x86/Kconfig          |   1 +
 drivers/platform/x86/fujitsu-laptop.c | 355 +++++++++++++++-------------------
 2 files changed, 154 insertions(+), 202 deletions(-)
Signature · 1 line
2.12.0