Skip to content

Commit

Permalink
Merge branch 'for-6.9/nintendo' into for-linus
Browse files Browse the repository at this point in the history
- dead code removal in hid-nintendo (Jiapeng Chong)
  • Loading branch information
Jiri Kosina committed Mar 13, 2024
2 parents 9459630 + 05c7d1d commit 1b99fb1
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions drivers/hid/hid-nintendo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) ||
Expand Down

0 comments on commit 1b99fb1

Please sign in to comment.