Skip to content

Commit

Permalink
Input: sensehat-joystick : Revert to downstream keymap
Browse files Browse the repository at this point in the history
Upstream chose to use BTN_DPAD_* and BTN_SELECT, whilst downstream
had used KEY_*.

Revert to the downstream map to avoid any regressions.
(Ideally this would be read from DT)

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 authored and popcornmix committed Nov 5, 2024
1 parent 2736f86 commit 55923a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/joystick/sensehat-joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct sensehat_joystick {
};

static const unsigned int keymap[] = {
BTN_DPAD_DOWN, BTN_DPAD_RIGHT, BTN_DPAD_UP, BTN_SELECT, BTN_DPAD_LEFT,
KEY_DOWN, KEY_RIGHT, KEY_UP, KEY_ENTER, KEY_LEFT
};

static irqreturn_t sensehat_joystick_report(int irq, void *cookie)
Expand Down

0 comments on commit 55923a3

Please sign in to comment.