Skip to content

Commit 05c7d1d

Browse files
wb-zjp846396Jiri Kosina
authored andcommitted
HID: nintendo: Remove some unused functions
These functions are defined in the hid-nintendo.c file, but not called elsewhere, so delete these unused functions. drivers/hid/hid-nintendo.c:757:20: warning: unused function 'joycon_type_has_left_controls'. drivers/hid/hid-nintendo.c:763:20: warning: unused function 'joycon_type_has_right_controls'. Fixes: 94f18bb ("HID: nintendo: add support for nso controllers") Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8060 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 92aec20 commit 05c7d1d

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

drivers/hid/hid-nintendo.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -754,18 +754,6 @@ static inline bool joycon_type_is_right_nescon(struct joycon_ctlr *ctlr)
754754
return ctlr->ctlr_type == JOYCON_CTLR_TYPE_NESR;
755755
}
756756

757-
static inline bool joycon_type_has_left_controls(struct joycon_ctlr *ctlr)
758-
{
759-
return joycon_type_is_left_joycon(ctlr) ||
760-
joycon_type_is_procon(ctlr);
761-
}
762-
763-
static inline bool joycon_type_has_right_controls(struct joycon_ctlr *ctlr)
764-
{
765-
return joycon_type_is_right_joycon(ctlr) ||
766-
joycon_type_is_procon(ctlr);
767-
}
768-
769757
static inline bool joycon_type_is_any_joycon(struct joycon_ctlr *ctlr)
770758
{
771759
return joycon_type_is_left_joycon(ctlr) ||

0 commit comments

Comments
 (0)