Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1233394rdb; Fri, 19 Jan 2024 12:13:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVapNpG6OvBi9lNqmskg5Ps+4zF3osguxsVXPJCB26PX3rOoo4bws865U8N+J8nICRSZFp X-Received: by 2002:a17:902:d4cb:b0:1d7:1937:bd2 with SMTP id o11-20020a170902d4cb00b001d719370bd2mr522414plg.56.1705695182040; Fri, 19 Jan 2024 12:13:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705695182; cv=pass; d=google.com; s=arc-20160816; b=sX/EMvEkcbmTemZtyK9jiIftJft4R7cfmIAkQNUIfq29XX9DIZ8Ee3h/vki/pvTiw8 89I0actPpa5me4LAppBQccE329PYDosmbHmUIsXXfN/Hh5y4+kzkHUuQG606MS3+A/f+ vvaEFjfQpeWVSJkBN5LSHKD685zMvfchwgd+JTaNdgxCPCZxii2yP3+hfnWjIjHvAtQj mM/QXQZDm2/ZhngvUcSoOcu447wTKNxd2zYMNiLzG1WwMNGBiQaZMPryCWgWFx1liPys k8nBLonMbwxJW2HjbP05JoBNlM78gI1yRhUmbED3XHjvsELELFLqOJyE6Ch1NOkpA2Ge sc/Q== 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:user-agent:message-id:in-reply-to :references:from:subject:cc:to:date:dkim-signature; bh=2TS9bhCvX81BzYvjrCjCIu9g02Wi4a1sZOjpMM5Ue90=; fh=AvHxa3yJD6owKLQpUqfaIQkscYBAxUF/78UxDBBdblc=; b=WKymm9crl1Oe8CEEcoVkPwimREc9Ra3S+CklMpG4xZMRYX9i4Z1zt4VklAD3i/AjNH C2tV9kHLsQ31gwzMS2nksZu+DgPewHhbnTmf//2XfS5HXAn9jldj0KF/UuKbhQOmyzwo pRles+wNpRo6dHgOlqw3SWqgCPjXTCLtYNvZ1uEyRs0BPUVKv6UrNfz3eKtU3xwmA0ye sTB8/1562vOUnn1sGqrlf/4Ih59pGI9vef1zfRLH1obgtxjxIHb9L+KcJU30rr4WVgtp l7IWOhCQpScKR82e9uas1rP6ZgG89hbY8qO0rOa5SauSTuzvjSn6oaOx93rh3rWinKcr I+oA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IrgFRrW1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-31536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j8-20020a170902da8800b001d6fce46e30si3843934plx.461.2024.01.19.12.13.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 12:13:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IrgFRrW1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-31536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 493A028766F for ; Fri, 19 Jan 2024 20:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2470F56755; Fri, 19 Jan 2024 20:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IrgFRrW1" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 586B441C98; Fri, 19 Jan 2024 20:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705695143; cv=none; b=IHrlSKT93v8/8f4c7YSllhNbxi2U6zWBsE671odCfKl2Q5vluIABnP0nYEqaT7+ODCLvfsvOZUQaT9QBhrOXzmmDu3OUHmEorzoy6Q8VT5exMB2+hKbIMZtomkUbJKIKor6oCAyHNxA6Wdcmn87SEKB0hMgEnoNgNvpJJz9BXJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705695143; c=relaxed/simple; bh=fXyLiyUsRSJIHfYDV21oU5ulEzgK0Z80Umh7/bQf1l4=; h=Date:To:Cc:Subject:From:References:In-Reply-To:Message-Id: MIME-Version:Content-Type; b=IwXBEehVP80Y56Pym1pWSWCMMU3m58b8UMm8mkOwBVd6uDe33lXf+1lS6zHu3BDYmc1NtMaerP7mXgzGg1aIlyFPU223rlZ3WmJ2mUTqmyXceM7XoqEK5mM/BxX+DKeRVpOKZNmwb3DztPXyp0Dt6RSOMeXng5mO3/t90junRKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IrgFRrW1; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-559d95f1e69so1270167a12.2; Fri, 19 Jan 2024 12:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705695139; x=1706299939; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:references:from:subject:cc:to:date:from:to:cc:subject :date:message-id:reply-to; bh=2TS9bhCvX81BzYvjrCjCIu9g02Wi4a1sZOjpMM5Ue90=; b=IrgFRrW1lR1WLrzbCwdiWv+BKuTepIf5fjk0p2b+5B369+DnvaTAl6yl3S1DHVU+LO G1klm/mB5fQV7U0eY4Pv1dBTCGutZ5sFgwHF2Zgud0mr1TEg1KKRMaz3FcvLenCjb8Pl CEGsRrvxgeqVj05GWoRgsQex4BbR1fwwB+eUXZSudiho/l8xCBlUHrRr63tKMh3iPucY rfzGg44OhQ4p4BH4xwu7jKj/irSmYuSi8QMkerjWEKtX/xt5J9YYFwTjYbt4yvKCRdIx GumlgUaJ2LQ3Y0bFasMb58u22a2co6EjjgJ4WnkaL544UElxOWWOSwWueyDZ/64hjzzk 67xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705695139; x=1706299939; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:references:from:subject:cc:to:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2TS9bhCvX81BzYvjrCjCIu9g02Wi4a1sZOjpMM5Ue90=; b=YfW21iiDM1Dv4CcWM6roIio8nv8QXIv/YmXDJNvnmeP7PN2N0BUhJRQ2OmmTiCYvUj lFGx60mEuTMjB5EH/7SmA50qEnMxrmHd587/a9Yl5D1+oIu2MQI7/p+oqOZvEjjRTMsy z3LNp3KP1hM6K8/X7cTfHW4Uh+HLVOfQC/zOuT25pP6j1ox4M7LFUj+CzwUAaMuoSkdt wm0aHruB2oBF6DwuogoAeOZoVRibs73wOjezN+tUyDauSZP36cpJTqnKysqzr9N2Gw5A 0AazXKutMLlhlmLrDkej2pww3nOfx5fbt64mA5GmrMhEZfDWv32EK4efUkkkHaliyvJ4 +yfQ== X-Gm-Message-State: AOJu0YxO+6/kA/NHFhG54IYpR8bzPJfPa8omAEJLrxIHl3Nt1kKyNE4l CPAa3pbaBnv44zjrynXfqlCejFjDYQSehX6Lo0xOvOKwmOVjvY4w X-Received: by 2002:a17:906:46c8:b0:a28:e441:7983 with SMTP id k8-20020a17090646c800b00a28e4417983mr162618ejs.52.1705695139372; Fri, 19 Jan 2024 12:12:19 -0800 (PST) Received: from localhost ([2a02:169:1e9:0:8f4d:9ee2:cc35:c67b]) by smtp.gmail.com with ESMTPSA id w26-20020a17090652da00b00a1c7b20e9e6sm10636175ejn.32.2024.01.19.12.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 12:12:18 -0800 (PST) Date: Fri, 19 Jan 2024 21:12:18 +0100 To: Jiapeng Chong Cc: djogorchock@gmail.com, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] HID: nintendo: Remove some unused functions From: "Silvan Jegen" References: <20240119072729.54499-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20240119072729.54499-1-jiapeng.chong@linux.alibaba.com> Message-Id: <3SMXOLWNXNNST.2TH7SLE53PSD3@homearch.localdomain> User-Agent: mblaze/1.2-26-ga287cf9 (2023-10-22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jiapeng Chong wrote: > These functions are defined in the hid-nintendo.c file, but not called > elsewhere, so delete these unused functions. >=20 > drivers/hid/hid-nintendo.c:670:20: warning: unused function 'joycon_devic= e_is_left_joycon'. > drivers/hid/hid-nintendo.c:674:20: warning: unused function 'joycon_devic= e_is_right_joycon' >=20 > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D7992 > Signed-off-by: Jiapeng Chong > --- > drivers/hid/hid-nintendo.c | 10 ---------- > 1 file changed, 10 deletions(-) Reviewed-by: Silvan Jegen >=20 > 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 conjun= ction > * with the capability helpers below. > */ > -static inline bool joycon_device_is_left_joycon(struct joycon_ctlr *ctlr= ) > -{ > - return ctlr->hdev->product =3D=3D USB_DEVICE_ID_NINTENDO_JOYCONL; > -} > - > -static inline bool joycon_device_is_right_joycon(struct joycon_ctlr *ctl= r) > -{ > - return ctlr->hdev->product =3D=3D USB_DEVICE_ID_NINTENDO_JOYCONR; > -} > - > static inline bool joycon_device_is_procon(struct joycon_ctlr *ctlr) > { > return ctlr->hdev->product =3D=3D USB_DEVICE_ID_NINTENDO_PROCON;