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
1b99fb19
Commit
1b99fb19
authored
Mar 13, 2024
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-6.9/nintendo' into for-linus
- dead code removal in hid-nintendo (Jiapeng Chong)
parents
94596303
05c7d1de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
drivers/hid/hid-nintendo.c
drivers/hid/hid-nintendo.c
+0
-22
No files found.
drivers/hid/hid-nintendo.c
View file @
1b99fb19
...
...
@@ -667,16 +667,6 @@ struct joycon_ctlr {
* These helpers are most useful early during the HID probe or in conjunction
* with the capability helpers below.
*/
static
inline
bool
joycon_device_is_left_joycon
(
struct
joycon_ctlr
*
ctlr
)
{
return
ctlr
->
hdev
->
product
==
USB_DEVICE_ID_NINTENDO_JOYCONL
;
}
static
inline
bool
joycon_device_is_right_joycon
(
struct
joycon_ctlr
*
ctlr
)
{
return
ctlr
->
hdev
->
product
==
USB_DEVICE_ID_NINTENDO_JOYCONR
;
}
static
inline
bool
joycon_device_is_procon
(
struct
joycon_ctlr
*
ctlr
)
{
return
ctlr
->
hdev
->
product
==
USB_DEVICE_ID_NINTENDO_PROCON
;
...
...
@@ -764,18 +754,6 @@ static inline bool joycon_type_is_right_nescon(struct joycon_ctlr *ctlr)
return
ctlr
->
ctlr_type
==
JOYCON_CTLR_TYPE_NESR
;
}
static
inline
bool
joycon_type_has_left_controls
(
struct
joycon_ctlr
*
ctlr
)
{
return
joycon_type_is_left_joycon
(
ctlr
)
||
joycon_type_is_procon
(
ctlr
);
}
static
inline
bool
joycon_type_has_right_controls
(
struct
joycon_ctlr
*
ctlr
)
{
return
joycon_type_is_right_joycon
(
ctlr
)
||
joycon_type_is_procon
(
ctlr
);
}
static
inline
bool
joycon_type_is_any_joycon
(
struct
joycon_ctlr
*
ctlr
)
{
return
joycon_type_is_left_joycon
(
ctlr
)
||
...
...
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