Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp833640rdb; Thu, 18 Jan 2024 23:28:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlsACqA9jlHP7XW+/mu2C9v3nUjX93u2/IM9fWSko5rTrrAdmv98O0bnkU9o3b0g9fyt3W X-Received: by 2002:a05:6402:1516:b0:559:ee40:d665 with SMTP id f22-20020a056402151600b00559ee40d665mr1113685edw.8.1705649282631; Thu, 18 Jan 2024 23:28:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705649282; cv=pass; d=google.com; s=arc-20160816; b=CLy43lKpk0+6cixLxJs645PWxj9pX5AlwteCEtn54PRCcKkGOP6aIZOrFqRcaBPvRe vGtj78U+8HfeUTxxtPdT4rPgtTsjewscVI9JGTjOtlP6/AtLw+hPU1WqrMnVmIODWoRo O1UraOAoXxKy4DxLuvuK+C2RA65GwVXwSGiOtnUx792QYtx/YIo6zYuRlBInro0hUsEI idLBw8/zFIKD5MDhyBtOjMk9yNZ3R5ORWwo4SqIlDI8g06GiOoucEFm0Xnuo9rD7zknf uv0A+WZaz9VmaxSTW2WlR667bBimhl+F/fmhRYPIV4Op3Aydf6a8rwCRewlSSWAihKY7 deKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=RNPoPYutYV+xKz8QdfB+f24QUR6mAIEy0d3ANHxpcw8=; fh=4bIASKU3NFziDS0H7a+aOgXVoYB+1JLqf7N8EGa4KbQ=; b=CnFmQZtxMDl4Hx2TekyfcLCIPJPEHTfdCJYTKYXKgyFAxIPKoz/SCjpgoRXRN864nC DykFEQjbUEuKU7K3hKqKqSjRjUnohpSNVe7TYD2ncDTTtAx8LRg6rI9MIGFtrQsFim3R ElmfmLnDOvvrSDtFuK404ZriULgiOP4Y3XlMlDn839G8TrSkDsPqWrCYwlmd/C+C7JyQ 76qouIwqaxLv0as90C2Rd5lYINcK+Bwam2cWu/iv+FGE5Piu2kN3/5vCletzsOsDYYhR qWsGZ4C7Y+FRJmRUtAoRFqTFpAhmA3QJCahE/daD4mIbhWqrfN+5PgDJEDmUTPGqLbiA B6qA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-30841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id en26-20020a056402529a00b00559f8dd62f7si1729606edb.346.2024.01.18.23.28.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 23:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-30841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 623A41F23AD8 for ; Fri, 19 Jan 2024 07:28:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3449BD29E; Fri, 19 Jan 2024 07:27:54 +0000 (UTC) Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1306F138F; Fri, 19 Jan 2024 07:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705649273; cv=none; b=R3J9UDEY0wcR4kJJ7ijHbAHapQU9RZ3v3DSS6u532X4n/xYwnNrbJzrrhswfOgBXt+GOs1O2wTZdeNRYy7gRBSvUUmhu3JuqMAL7AxJ8wo1OjGWodoPmnYPqrXXrO33LqNv/ZOnwA6BU8Avib04jmkbG8VI7y1Ijpe78hXWG7RM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705649273; c=relaxed/simple; bh=k4zY6zSfiVrGSgWwEbgj3i1uxtZL9Q19dTH4gm4sUnM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oR0Y4q+Pk0n6a6yqxlg79mu+FxjajpfCAkWoZvLLbfancxyuRaTjXgI0ZPEDDmdBmUEDlk+kEDe2T7wQJgPmS9ruM8NugA560P2VHyIeAuf+zdgCC9ws4zHG6s08c60oGL+A7lvnm2qFviKtFHFDlwrO0NcnfVzQ4OkxBOIYp1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; arc=none smtp.client-ip=115.124.30.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R831e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0W-vEN39_1705649251; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W-vEN39_1705649251) by smtp.aliyun-inc.com; Fri, 19 Jan 2024 15:27:41 +0800 From: Jiapeng Chong To: djogorchock@gmail.com Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] HID: nintendo: Remove some unused functions Date: Fri, 19 Jan 2024 15:27:29 +0800 Message-Id: <20240119072729.54499-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7992 Signed-off-by: Jiapeng Chong --- drivers/hid/hid-nintendo.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/hid/hid-nintendo.c b/drivers/hid/hid-nintendo.c index ccc4032fb2b0..7ce6be0a8dee 100644 --- a/drivers/hid/hid-nintendo.c +++ b/drivers/hid/hid-nintendo.c @@ -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; -- 2.20.1.7.g153144c