Skip to content

Commit 32165ac

Browse files
6by9popcornmix
authored andcommitted
Input: sensehat-joystick : Revert to downstream keymap
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]>
1 parent 577669b commit 32165ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/joystick/sensehat-joystick.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct sensehat_joystick {
2828
};
2929

3030
static const unsigned int keymap[] = {
31-
BTN_DPAD_DOWN, BTN_DPAD_RIGHT, BTN_DPAD_UP, BTN_SELECT, BTN_DPAD_LEFT,
31+
KEY_DOWN, KEY_RIGHT, KEY_UP, KEY_ENTER, KEY_LEFT
3232
};
3333

3434
static irqreturn_t sensehat_joystick_report(int irq, void *cookie)

0 commit comments

Comments
 (0)