Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4f94ff4e
Commit
4f94ff4e
authored
Jul 10, 2017
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'for-4.13/apple' and 'for-4.13/asus' into for-linus
Conflicts: drivers/hid/hid-core.c
parents
900a88ef
bd77a0f0
38b2d78c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
38 deletions
+63
-38
drivers/hid/hid-apple.c
drivers/hid/hid-apple.c
+27
-32
drivers/hid/hid-asus.c
drivers/hid/hid-asus.c
+30
-0
drivers/hid/hid-chicony.c
drivers/hid/hid-chicony.c
+0
-2
drivers/hid/hid-core.c
drivers/hid/hid-core.c
+3
-2
drivers/hid/hid-ids.h
drivers/hid/hid-ids.h
+3
-2
No files found.
drivers/hid/hid-apple.c
View file @
4f94ff4e
This diff is collapsed.
Click to expand it.
drivers/hid/hid-asus.c
View file @
4f94ff4e
...
@@ -422,6 +422,33 @@ static int asus_input_mapping(struct hid_device *hdev,
...
@@ -422,6 +422,33 @@ static int asus_input_mapping(struct hid_device *hdev,
return
1
;
return
1
;
}
}
if
((
usage
->
hid
&
HID_USAGE_PAGE
)
==
HID_UP_MSVENDOR
)
{
set_bit
(
EV_REP
,
hi
->
input
->
evbit
);
switch
(
usage
->
hid
&
HID_USAGE
)
{
case
0xff01
:
asus_map_key_clear
(
BTN_1
);
break
;
case
0xff02
:
asus_map_key_clear
(
BTN_2
);
break
;
case
0xff03
:
asus_map_key_clear
(
BTN_3
);
break
;
case
0xff04
:
asus_map_key_clear
(
BTN_4
);
break
;
case
0xff05
:
asus_map_key_clear
(
BTN_5
);
break
;
case
0xff06
:
asus_map_key_clear
(
BTN_6
);
break
;
case
0xff07
:
asus_map_key_clear
(
BTN_7
);
break
;
case
0xff08
:
asus_map_key_clear
(
BTN_8
);
break
;
case
0xff09
:
asus_map_key_clear
(
BTN_9
);
break
;
case
0xff0a
:
asus_map_key_clear
(
BTN_A
);
break
;
case
0xff0b
:
asus_map_key_clear
(
BTN_B
);
break
;
case
0x00f1
:
asus_map_key_clear
(
KEY_WLAN
);
break
;
case
0x00f2
:
asus_map_key_clear
(
KEY_BRIGHTNESSDOWN
);
break
;
case
0x00f3
:
asus_map_key_clear
(
KEY_BRIGHTNESSUP
);
break
;
case
0x00f4
:
asus_map_key_clear
(
KEY_DISPLAY_OFF
);
break
;
case
0x00f7
:
asus_map_key_clear
(
KEY_CAMERA
);
break
;
case
0x00f8
:
asus_map_key_clear
(
KEY_PROG1
);
break
;
default:
return
0
;
}
return
1
;
}
if
(
drvdata
->
quirks
&
QUIRK_NO_CONSUMER_USAGES
&&
if
(
drvdata
->
quirks
&
QUIRK_NO_CONSUMER_USAGES
&&
(
usage
->
hid
&
HID_USAGE_PAGE
)
==
HID_UP_CONSUMER
)
{
(
usage
->
hid
&
HID_USAGE_PAGE
)
==
HID_UP_CONSUMER
)
{
switch
(
usage
->
hid
&
HID_USAGE
)
{
switch
(
usage
->
hid
&
HID_USAGE
)
{
...
@@ -572,6 +599,9 @@ static const struct hid_device_id asus_devices[] = {
...
@@ -572,6 +599,9 @@ static const struct hid_device_id asus_devices[] = {
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_T100_KEYBOARD
),
USB_DEVICE_ID_ASUSTEK_T100_KEYBOARD
),
QUIRK_T100_KEYBOARD
|
QUIRK_NO_CONSUMER_USAGES
},
QUIRK_T100_KEYBOARD
|
QUIRK_NO_CONSUMER_USAGES
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_ASUS_AK1D
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_TURBOX
,
USB_DEVICE_ID_ASUS_MD_5110
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_JESS
,
USB_DEVICE_ID_ASUS_MD_5112
)
},
{
}
{
}
};
};
MODULE_DEVICE_TABLE
(
hid
,
asus_devices
);
MODULE_DEVICE_TABLE
(
hid
,
asus_devices
);
...
...
drivers/hid/hid-chicony.c
View file @
4f94ff4e
...
@@ -84,9 +84,7 @@ static __u8 *ch_switch12_report_fixup(struct hid_device *hdev, __u8 *rdesc,
...
@@ -84,9 +84,7 @@ static __u8 *ch_switch12_report_fixup(struct hid_device *hdev, __u8 *rdesc,
static
const
struct
hid_device_id
ch_devices
[]
=
{
static
const
struct
hid_device_id
ch_devices
[]
=
{
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_TACTICAL_PAD
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_TACTICAL_PAD
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_WIRELESS2
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_WIRELESS2
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_AK1D
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_ACER_SWITCH12
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_ACER_SWITCH12
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_JESS
,
USB_DEVICE_ID_JESS_ZEN_AIO_KBD
)
},
{
}
{
}
};
};
MODULE_DEVICE_TABLE
(
hid
,
ch_devices
);
MODULE_DEVICE_TABLE
(
hid
,
ch_devices
);
...
...
drivers/hid/hid-core.c
View file @
4f94ff4e
...
@@ -1892,6 +1892,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
...
@@ -1892,6 +1892,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD2
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD2
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_T100_KEYBOARD
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_ASUSTEK
,
USB_DEVICE_ID_ASUSTEK_T100_KEYBOARD
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_JESS
,
USB_DEVICE_ID_ASUS_MD_5112
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_TURBOX
,
USB_DEVICE_ID_ASUS_MD_5110
)
},
#endif
#endif
#if IS_ENABLED(CONFIG_HID_AUREAL)
#if IS_ENABLED(CONFIG_HID_AUREAL)
{
HID_USB_DEVICE
(
USB_VENDOR_ID_AUREAL
,
USB_DEVICE_ID_AUREAL_W01RN
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_AUREAL
,
USB_DEVICE_ID_AUREAL_W01RN
)
},
...
@@ -1913,9 +1915,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
...
@@ -1913,9 +1915,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
#if IS_ENABLED(CONFIG_HID_CHICONY)
#if IS_ENABLED(CONFIG_HID_CHICONY)
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_TACTICAL_PAD
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_TACTICAL_PAD
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_WIRELESS2
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_WIRELESS2
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_
CHICONY
_AK1D
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_
ASUS
_AK1D
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_ACER_SWITCH12
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CHICONY
,
USB_DEVICE_ID_CHICONY_ACER_SWITCH12
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_JESS
,
USB_DEVICE_ID_JESS_ZEN_AIO_KBD
)
},
#endif
#endif
#if IS_ENABLED(CONFIG_HID_CMEDIA)
#if IS_ENABLED(CONFIG_HID_CMEDIA)
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CMEDIA
,
USB_DEVICE_ID_CM6533
)
},
{
HID_USB_DEVICE
(
USB_VENDOR_ID_CMEDIA
,
USB_DEVICE_ID_CM6533
)
},
...
...
drivers/hid/hid-ids.h
View file @
4f94ff4e
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
#define USB_DEVICE_ID_CHICONY_WIRELESS 0x0618
#define USB_DEVICE_ID_CHICONY_WIRELESS 0x0618
#define USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE 0x1053
#define USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE 0x1053
#define USB_DEVICE_ID_CHICONY_WIRELESS2 0x1123
#define USB_DEVICE_ID_CHICONY_WIRELESS2 0x1123
#define USB_DEVICE_ID_
CHICONY_AK1D
0x1125
#define USB_DEVICE_ID_
ASUS_AK1D
0x1125
#define USB_DEVICE_ID_CHICONY_ACER_SWITCH12 0x1421
#define USB_DEVICE_ID_CHICONY_ACER_SWITCH12 0x1421
#define USB_VENDOR_ID_CHUNGHWAT 0x2247
#define USB_VENDOR_ID_CHUNGHWAT 0x2247
...
@@ -573,7 +573,7 @@
...
@@ -573,7 +573,7 @@
#define USB_VENDOR_ID_JESS 0x0c45
#define USB_VENDOR_ID_JESS 0x0c45
#define USB_DEVICE_ID_JESS_YUREX 0x1010
#define USB_DEVICE_ID_JESS_YUREX 0x1010
#define USB_DEVICE_ID_
JESS_ZEN_AIO_KBD
0x5112
#define USB_DEVICE_ID_
ASUS_MD_5112
0x5112
#define USB_VENDOR_ID_JESS2 0x0f30
#define USB_VENDOR_ID_JESS2 0x0f30
#define USB_DEVICE_ID_JESS2_COLOR_RUMBLE_PAD 0x0111
#define USB_DEVICE_ID_JESS2_COLOR_RUMBLE_PAD 0x0111
...
@@ -1024,6 +1024,7 @@
...
@@ -1024,6 +1024,7 @@
#define USB_VENDOR_ID_TURBOX 0x062a
#define USB_VENDOR_ID_TURBOX 0x062a
#define USB_DEVICE_ID_TURBOX_KEYBOARD 0x0201
#define USB_DEVICE_ID_TURBOX_KEYBOARD 0x0201
#define USB_DEVICE_ID_ASUS_MD_5110 0x5110
#define USB_DEVICE_ID_TURBOX_TOUCHSCREEN_MOSART 0x7100
#define USB_DEVICE_ID_TURBOX_TOUCHSCREEN_MOSART 0x7100
#define USB_VENDOR_ID_TWINHAN 0x6253
#define USB_VENDOR_ID_TWINHAN 0x6253
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment