Skip to content

Commit 0fe86b2

Browse files
committed
Merge tag 'input-for-v5.18-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input fixes from Dmitry Torokhov: - a new set of keycodes to be used by marine navigation systems - minor fixes to omap4-keypad and cypress-sf drivers * tag 'input-for-v5.18-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: add Marine Navigation Keycodes Input: omap4-keypad - fix pm_runtime_get_sync() error checking Input: cypress-sf - register a callback to disable the regulators
2 parents 8467f9e + 470776c commit 0fe86b2

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

drivers/input/keyboard/cypress-sf.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ static irqreturn_t cypress_sf_irq_handler(int irq, void *devid)
6161
return IRQ_HANDLED;
6262
}
6363

64+
static void cypress_sf_disable_regulators(void *arg)
65+
{
66+
struct cypress_sf_data *touchkey = arg;
67+
68+
regulator_bulk_disable(ARRAY_SIZE(touchkey->regulators),
69+
touchkey->regulators);
70+
}
71+
6472
static int cypress_sf_probe(struct i2c_client *client)
6573
{
6674
struct cypress_sf_data *touchkey;
@@ -121,6 +129,12 @@ static int cypress_sf_probe(struct i2c_client *client)
121129
return error;
122130
}
123131

132+
error = devm_add_action_or_reset(&client->dev,
133+
cypress_sf_disable_regulators,
134+
touchkey);
135+
if (error)
136+
return error;
137+
124138
touchkey->input_dev = devm_input_allocate_device(&client->dev);
125139
if (!touchkey->input_dev) {
126140
dev_err(&client->dev, "Failed to allocate input device\n");

drivers/input/keyboard/omap4-keypad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static int omap4_keypad_probe(struct platform_device *pdev)
393393
* revision register.
394394
*/
395395
error = pm_runtime_get_sync(dev);
396-
if (error) {
396+
if (error < 0) {
397397
dev_err(dev, "pm_runtime_get_sync() failed\n");
398398
pm_runtime_put_noidle(dev);
399399
return error;

include/uapi/linux/input-event-codes.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,27 @@
662662
/* Select an area of screen to be copied */
663663
#define KEY_SELECTIVE_SCREENSHOT 0x27a
664664

665+
/* Move the focus to the next or previous user controllable element within a UI container */
666+
#define KEY_NEXT_ELEMENT 0x27b
667+
#define KEY_PREVIOUS_ELEMENT 0x27c
668+
669+
/* Toggle Autopilot engagement */
670+
#define KEY_AUTOPILOT_ENGAGE_TOGGLE 0x27d
671+
672+
/* Shortcut Keys */
673+
#define KEY_MARK_WAYPOINT 0x27e
674+
#define KEY_SOS 0x27f
675+
#define KEY_NAV_CHART 0x280
676+
#define KEY_FISHING_CHART 0x281
677+
#define KEY_SINGLE_RANGE_RADAR 0x282
678+
#define KEY_DUAL_RANGE_RADAR 0x283
679+
#define KEY_RADAR_OVERLAY 0x284
680+
#define KEY_TRADITIONAL_SONAR 0x285
681+
#define KEY_CLEARVU_SONAR 0x286
682+
#define KEY_SIDEVU_SONAR 0x287
683+
#define KEY_NAV_INFO 0x288
684+
#define KEY_BRIGHTNESS_MENU 0x289
685+
665686
/*
666687
* Some keyboards have keys which do not have a defined meaning, these keys
667688
* are intended to be programmed / bound to macros by the user. For most

0 commit comments

Comments
 (0)