Skip to content

Commit 92aec20

Browse files
Jiapeng ChongJiri 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:670:20: warning: unused function 'joycon_device_is_left_joycon'. drivers/hid/hid-nintendo.c:674:20: warning: unused function 'joycon_device_is_right_joycon' Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7992 Signed-off-by: Jiapeng Chong <[email protected]> Reviewed-by: Silvan Jegen <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent fef018d commit 92aec20

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/hid/hid-nintendo.c

Lines changed: 0 additions & 10 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;

0 commit comments

Comments
 (0)