Skip to content

Input/HID: Consolidate ChromeOS Vivaldi keyboard logic

Dmitry Torokhov linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest5 patches 4 repliesIn review

Changes in v5 from the cover letter

(https://lore.kernel.org/r/[email protected]):
* The series is on top of [PATCH] HID: vivaldi: fix sysfs attributes leak (https://lore.kernel.org/r/[email protected])
* Added patch to used devm for keyboard backlight LED in hammer driver
* Avoid putting HID-specific stuff in input header, instead introduce new private hid-vivaldi-common.h
* More code sharing between hid-google-hammer.c and hid-vivaldi.c by mandating that vivaldi data instance should be the very first or the only driver-private data.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5HID: google: switch to devm when registering keyboard backlight LEDdrivers/hid/hid-google-hammer.c+13 -250 replies
2/5Input: extract ChromeOS vivaldi physmap show functiondrivers/hid/Kconfig drivers/hid/hid-vivaldi.c drivers/input/Kconfig +6 more+108 -660 replies
3/5HID: google: extract Vivaldi hid feature mapping for use in hid-hammerdrivers/hid/Kconfig drivers/hid/Makefile drivers/hid/hid-vivaldi-common.c +2 more+167 -1041 reply
4/5HID: google: Add support for vivaldi to hid-hammerdrivers/hid/Kconfig drivers/hid/hid-google-hammer.c+13 -00 replies
5/5HID: google: modify HID device groups of eeldrivers/hid/hid-google-hammer.c+1 -12 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchSean O'BrienJiri KosinaStephen Boyd
SeriesT-b
1/5
2/5
3/5
4/5
5/5T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/5] Input/HID: Consolidate ChromeOS Vivaldi keyboard logic

This is a follow-on to this thread[1] where we discussed the need to support the vivaldi keyboard function row keys in the google hammer driver. I've extracted the common code into a new vivaldi-fmap.c file that can be used by the various keyboard drivers used on ChromeOS devices to expose the function_row_physmap sysfs attribute. Then we make another file to keep the HID parsing logic common for the vivaldi and hammer keyboards. Finally, we add support for the function row physmap attribute to the hammer driver.

NOTE: I dropped Tested-by and Acked-by as patches have been reworked, please give them another spin.

Changed from v4 (dtor):
(https://lore.kernel.org/r/[email protected]):
* The series is on top of [PATCH] HID: vivaldi: fix sysfs attributes leak (https://lore.kernel.org/r/[email protected])
* Added patch to used devm for keyboard backlight LED in hammer driver
* Avoid putting HID-specific stuff in input header, instead introduce new private hid-vivaldi-common.h
* More code sharing between hid-google-hammer.c and hid-vivaldi.c by mandating that vivaldi data instance should be the very first or the only driver-private data.

Changes from v3
(https://lore.kernel.org/r/[email protected]):
* Changed vivaldi-keymap to vivaldi-fmap

Changes from v2
(https://lore.kernel.org/r/[email protected]):
* Drop first patch to change to u16
* Change array type to u32 in vivaldi_data

Changes from v1
(https://lore.kernel.org/r/[email protected]):
* Yet another new file for HID part to fix compilation problems

Dmitry Torokhov (1):
HID: google: switch to devm when registering keyboard backlight LED

Stephen Boyd (3):
Input: extract ChromeOS vivaldi physmap show function
HID: google: extract Vivaldi hid feature mapping for use in hid-hammer
HID: google: Add support for vivaldi to hid-hammer

Zhengqiao Xia (1):
HID: google: modify HID device groups of eel

 drivers/hid/Kconfig                   |  11 ++
 drivers/hid/Makefile                  |   1 +
 drivers/hid/hid-google-hammer.c       |  51 +++++-----
 drivers/hid/hid-vivaldi-common.c      | 140 ++++++++++++++++++++++++++
 drivers/hid/hid-vivaldi-common.h      |  16 +++
 drivers/hid/hid-vivaldi.c             | 121 +---------------------
 drivers/input/Kconfig                 |   7 ++
 drivers/input/Makefile                |   1 +
 drivers/input/keyboard/Kconfig        |   2 +
 drivers/input/keyboard/atkbd.c        |  27 ++---
 drivers/input/keyboard/cros_ec_keyb.c |  43 +++-----
 drivers/input/vivaldi-fmap.c          |  39 +++++++
 include/linux/input/vivaldi-fmap.h    |  27 +++++
 13 files changed, 296 insertions(+), 190 deletions(-)
 create mode 100644 drivers/hid/hid-vivaldi-common.c
 create mode 100644 drivers/hid/hid-vivaldi-common.h
 create mode 100644 drivers/input/vivaldi-fmap.c
 create mode 100644 include/linux/input/vivaldi-fmap.h
Signature · 1 line
2.35.1.574.g5d30c73bfb-goog