diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2024-04-07 10:11:00 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-04-12 13:40:32 +0200 |
commit | f6e0f53a48809184c6d79177d1435fbff6b672c0 (patch) | |
tree | 819bd7ae7e18e462f22494b73bc5e97ae231c7d2 /drivers/hid | |
parent | 28ba6011f5dfd337e61e9c5618824115c63be66a (diff) |
HID: nintendo: Remove unused function
The function are defined in the hid-nintendo.c file, but not called
elsewhere, so delete the unused function.
drivers/hid/hid-nintendo.c:697:20: warning: unused function 'joycon_device_has_usb'.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8704
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-nintendo.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/hid/hid-nintendo.c b/drivers/hid/hid-nintendo.c index e311b092e758..b0d6c6db522d 100644 --- a/drivers/hid/hid-nintendo.c +++ b/drivers/hid/hid-nintendo.c @@ -694,15 +694,6 @@ static inline bool joycon_device_is_n64con(struct joycon_ctlr *ctlr) return ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_N64CON; } -static inline bool joycon_device_has_usb(struct joycon_ctlr *ctlr) -{ - return joycon_device_is_procon(ctlr) || - joycon_device_is_chrggrip(ctlr) || - joycon_device_is_snescon(ctlr) || - joycon_device_is_gencon(ctlr) || - joycon_device_is_n64con(ctlr); -} - /* * Controller type helpers * |