Skip to content

Commit 1b99fb1

Browse files
author
Jiri Kosina
committed
Merge branch 'for-6.9/nintendo' into for-linus
- dead code removal in hid-nintendo (Jiapeng Chong)
2 parents 9459630 + 05c7d1d commit 1b99fb1

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

drivers/hid/hid-nintendo.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -667,16 +667,6 @@ struct joycon_ctlr {
667667
* These helpers are most useful early during the HID probe or in conjunction
668668
* with the capability helpers below.
669669
*/
670-
static inline bool joycon_device_is_left_joycon(struct joycon_ctlr *ctlr)
671-
{
672-
return ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_JOYCONL;
673-
}
674-
675-
static inline bool joycon_device_is_right_joycon(struct joycon_ctlr *ctlr)
676-
{
677-
return ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_JOYCONR;
678-
}
679-
680670
static inline bool joycon_device_is_procon(struct joycon_ctlr *ctlr)
681671
{
682672
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)
764754
return ctlr->ctlr_type == JOYCON_CTLR_TYPE_NESR;
765755
}
766756

767-
static inline bool joycon_type_has_left_controls(struct joycon_ctlr *ctlr)
768-
{
769-
return joycon_type_is_left_joycon(ctlr) ||
770-
joycon_type_is_procon(ctlr);
771-
}
772-
773-
static inline bool joycon_type_has_right_controls(struct joycon_ctlr *ctlr)
774-
{
775-
return joycon_type_is_right_joycon(ctlr) ||
776-
joycon_type_is_procon(ctlr);
777-
}
778-
779757
static inline bool joycon_type_is_any_joycon(struct joycon_ctlr *ctlr)
780758
{
781759
return joycon_type_is_left_joycon(ctlr) ||

0 commit comments

Comments
 (0)