-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input: add some initial keyboard matrix library stubs #64456
Merged
carlescufi
merged 1 commit into
zephyrproject-rtos:main
from
fabiobaltieri:input-keyboard
Oct 31, 2023
Merged
input: add some initial keyboard matrix library stubs #64456
carlescufi
merged 1 commit into
zephyrproject-rtos:main
from
fabiobaltieri:input-keyboard
Oct 31, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fabiobaltieri
force-pushed
the
input-keyboard
branch
5 times, most recently
from
October 26, 2023 16:47
88b4ff3
to
2718825
Compare
fabiobaltieri
commented
Oct 26, 2023
drivers/input/input_kbd_matrix.h
Outdated
struct input_kbd_matrix_common_data { | ||
struct k_thread thread; | ||
|
||
K_KERNEL_STACK_MEMBER(thread_stack, CONFIG_INPUT_KBD_THREAD_STACK_SIZE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finally understand why everyone puts a space before this one, checkpatch complains. Should really fix checkpatch, but Perl.
fabiobaltieri
requested review from
MulinChao,
ChiHuaL and
galak
as code owners
October 26, 2023 17:30
zephyrbot
added
area: Input
Input Subsystem and Drivers
platform: Nuvoton NPCX
Nuvoton NPCX
area: Devicetree Binding
PR modifies or adds a Device Tree binding
labels
Oct 26, 2023
fabiobaltieri
force-pushed
the
input-keyboard
branch
from
October 29, 2023 21:02
2718825
to
05f102c
Compare
ChiHuaL
previously approved these changes
Oct 30, 2023
MulinChao
previously approved these changes
Oct 30, 2023
keith-zephyr
previously approved these changes
Oct 30, 2023
We currently have three keyboard scanning drivers in the code base (npcx, it8xxx2 and mchp_xec, last two yet to be converted to input). These have been largely copy pasted from each other and share a lot of the same structure and code. This PR lays a foundation to start decoupling feature from those drivers into a common code base, and it is heavily inspired by the current regulator common data/config one. Feature wise this only moves the thread struct, stack and initialization to the common code and declares the thread callback as the only API, but the intent is to move as much code as possible in there an only abstract device specific callbacks in the api structures. Signed-off-by: Fabio Baltieri <[email protected]>
Merge conflict, rebased. |
fabiobaltieri
dismissed stale reviews from keith-zephyr, MulinChao, and ChiHuaL
via
October 30, 2023 19:44
f8e018f
fabiobaltieri
force-pushed
the
input-keyboard
branch
from
October 30, 2023 19:44
05f102c
to
f8e018f
Compare
keith-zephyr
approved these changes
Oct 30, 2023
MulinChao
approved these changes
Oct 31, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Devicetree Binding
PR modifies or adds a Device Tree binding
area: Input
Input Subsystem and Drivers
platform: Nuvoton NPCX
Nuvoton NPCX
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Picking up the work from #52355 and #42923, making this an internal library (similar to
i2c_bitbang
orcan_mcan
) rather than a subsystem api.We currently have three keyboard scanning drivers in the code base (npcx, it8xxx2 and mchp_xec, last two yet to be converted to input). These have been largely copy pasted from each other and share a lot of the same structure and code.
This PR lays a foundation to start decoupling feature from those drivers into a common code base, and it is heavily inspired by the current regulator common data/config one.
Feature wise this only moves the thread struct, stack and initialization to the common code and declares the thread callback as the only API, but the intent is to move as much code as possible in there an only abstract device specific callbacks in the api structures.