File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
680670static 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-
779757static inline bool joycon_type_is_any_joycon (struct joycon_ctlr * ctlr )
780758{
781759 return joycon_type_is_left_joycon (ctlr ) ||
You can’t perform that action at this time.
0 commit comments