diff options
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/intel-hid.c | 3 | ||||
-rw-r--r-- | drivers/platform/x86/intel_scu_ipcutil.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c index 20f0ad9bb9f3..e20f23e04c24 100644 --- a/drivers/platform/x86/intel-hid.c +++ b/drivers/platform/x86/intel-hid.c | |||
@@ -41,8 +41,7 @@ static const struct key_entry intel_hid_keymap[] = { | |||
41 | { KE_KEY, 4, { KEY_HOME } }, | 41 | { KE_KEY, 4, { KEY_HOME } }, |
42 | { KE_KEY, 5, { KEY_END } }, | 42 | { KE_KEY, 5, { KEY_END } }, |
43 | { KE_KEY, 6, { KEY_PAGEUP } }, | 43 | { KE_KEY, 6, { KEY_PAGEUP } }, |
44 | { KE_KEY, 4, { KEY_PAGEDOWN } }, | 44 | { KE_KEY, 7, { KEY_PAGEDOWN } }, |
45 | { KE_KEY, 4, { KEY_HOME } }, | ||
46 | { KE_KEY, 8, { KEY_RFKILL } }, | 45 | { KE_KEY, 8, { KEY_RFKILL } }, |
47 | { KE_KEY, 9, { KEY_POWER } }, | 46 | { KE_KEY, 9, { KEY_POWER } }, |
48 | { KE_KEY, 11, { KEY_SLEEP } }, | 47 | { KE_KEY, 11, { KEY_SLEEP } }, |
diff --git a/drivers/platform/x86/intel_scu_ipcutil.c b/drivers/platform/x86/intel_scu_ipcutil.c index 02bc5a6343c3..aa454241489c 100644 --- a/drivers/platform/x86/intel_scu_ipcutil.c +++ b/drivers/platform/x86/intel_scu_ipcutil.c | |||
@@ -49,7 +49,7 @@ struct scu_ipc_data { | |||
49 | 49 | ||
50 | static int scu_reg_access(u32 cmd, struct scu_ipc_data *data) | 50 | static int scu_reg_access(u32 cmd, struct scu_ipc_data *data) |
51 | { | 51 | { |
52 | int count = data->count; | 52 | unsigned int count = data->count; |
53 | 53 | ||
54 | if (count == 0 || count == 3 || count > 4) | 54 | if (count == 0 || count == 3 || count > 4) |
55 | return -EINVAL; | 55 | return -EINVAL; |