From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 81B6821A0B for ; Sun, 15 Sep 2024 06:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382461; cv=none; b=kjRN433CUYUmU2G+8bY0FHj17dpMvYCxhvZRZtpWgxXfLoC3RnO23/b9SHfgypTiFUym6U8RjN0y/IzeCIRZlqoGqRcXUK82XZSNSoD/PMGEvSsznNW+Lc2YL/jEtXt4i+ICkVWQsRLv7IpHAnoNyY7LXC4uEE2V4bO3STO8P+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382461; c=relaxed/simple; bh=j2O6drT/yEaimEwcfCew5PpZKxEWLADmXSUd7fDuNnw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KsgJFsR2IJOn2Dsd6L0hsGBtXFc4CMsuSD9SN1pvKcYvUcBAHnvQKV9Oto1DrnpYEq47NFW3F2cFHysHC0CGnixvgfPaZbLZHoDPBwxCPxFPKlgW+oUjBo/D2+eafOdGqjf+8x2CAF1/inoSc3CnrpGRi0O/gvbTH+GqPUA76+0= 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=RaLfOqDj; arc=none smtp.client-ip=209.85.218.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RaLfOqDj" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a90188ae58eso410218266b.1 for ; Sat, 14 Sep 2024 23:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382458; x=1726987258; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oWDI5048snuoXs6IvpY8OD2FxJJ3IZXVvUC8J5ar7tY=; b=RaLfOqDjs4Byzf+RVkGc7f0QWNhJpDWouEds1Na/OR2tVSns0xiVfz3YMPo82jdGtu 3Ob3sRuZYkYOhOQ+wT6214oZu1s31IghG78typaaiP/v38xmYc5pnc28+hzACdpQY8/Z iR+ebXtXoh/ZcwfUruhRf8DpLc9nQ60GShypKcOB4OTItPVLV8xFNzarGALRKh/+uQZt 44mxq+i4wHGg2dn7V9Y+VMtYXy9PfnofRFvMYpUjvhL1wrg9MQ3VCfKM+fnCnuI1J4oU bSuXwqeMErLVdNNtV29dGMZcPfptZBWrVpR2eG7tZyNHCQkSOTCR65aeqxa3Z4sSpMz5 BDqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382458; x=1726987258; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oWDI5048snuoXs6IvpY8OD2FxJJ3IZXVvUC8J5ar7tY=; b=o/YvK+s2ySJaawNXg4Kz9a7OUqmvTnNgLiivyoF3aGc7mFdB84XxlRja9wpC7uEGWa sKuhI1Ty/SXdHhk/gEq8o+D/vmxH1qBA52AKLbeW/15s3gZBq84SjTh6n4VDs2YqcntD 9KkYIxwUSW/eagWW58/FwO7ILRCySE+chuQukm2TtmBplbyxV6Rw9rgub1u3MGCW1qdU BMJTtQWLZW5osV++rtJIFG686CSXIsiu041Fn1Q0905lj6NG1uQ7hi9ULQsOWjDn0UcP jrCRkmme3H9OQQPsfR/aRDF1vQNJ7j8YIG4mPIM5CKKI5F/vD53JjikSR/Gm6x37lfDi 1vnw== X-Forwarded-Encrypted: i=1; AJvYcCWTwULH+DcVvotKQQyhMyO5ab3e7UHzz7CKSZfm/QUwUDqEK83HXIuP4gimkUg8fjMZw3U+CZ279ezGnKc=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3Wdm+VgVml07/9rBlhw2d/dlDSPQ+SrY/1dngC9meZqWx8Vad 4xAdk/bB8ZUhfZXsQcvjFP/isFAyjHhsBibUvMYP+2sZ6UCP2PA8 X-Google-Smtp-Source: AGHT+IEt7MPkHW+ZL5OLRwFItxC7DdTzX7eqPc/VeXHarcujLoUO+0sL0ZjcE08o/LTo3wnGzQmseQ== X-Received: by 2002:a17:907:f18c:b0:a8d:3998:2de with SMTP id a640c23a62f3a-a90293fbcb8mr1072337466b.12.1726382457958; Sat, 14 Sep 2024 23:40:57 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:40:57 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 01/17] staging: rtl8723bs: Remove unused function dvobj_get_port0_adapter Date: Sun, 15 Sep 2024 08:38:15 +0200 Message-ID: <11091c00a57600a79a623f92ca8435034f0dfb3c.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function dvobj_get_port0_adapter. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 8 -------- drivers/staging/rtl8723bs/include/drv_types.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/stagi= ng/rtl8723bs/core/rtw_wlan_util.c index f37fec1efaf9..2fb14f4ff1af 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -1840,11 +1840,3 @@ u8 rtw_search_max_mac_id(struct adapter *padapter) =20 return max_mac_id; } - -struct adapter *dvobj_get_port0_adapter(struct dvobj_priv *dvobj) -{ - if (get_iface_type(dvobj->padapters[i]) !=3D IFACE_PORT0) - return NULL; - - return dvobj->padapters; -} diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/stagin= g/rtl8723bs/include/drv_types.h index 0b35c97843cc..0094eed6c32d 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -320,8 +320,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_= priv *dvobj) return &dvobj->intf_data.func->dev; } =20 -struct adapter *dvobj_get_port0_adapter(struct dvobj_priv *dvobj); - enum { IFACE_PORT0, /* mapping to port0 for C/D series chips */ IFACE_PORT1, /* mapping to port1 for C/D series chip */ --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 34A7B22083 for ; Sun, 15 Sep 2024 06:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382461; cv=none; b=YTxoOBsGxn/exQxH9lFGqi+sbDT00tUtylRbeS+H9qC3A9U11mZpeHBQKF8J6F7dHPOJFw7zQSNYIFmxAnwW8bKO+/l1hbZ5o8a+ZbhXPdZrKgFIPaQcxznvIhromHyZ/0DJvkl2zuLWDlnniCETHlEMy1D0gmOvXNk6pfCI1T0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382461; c=relaxed/simple; bh=pvldl6v2DFlIl2vFANnRg4XBzOOXrXQyVsi9Mo6ORJQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NHRS3ZLplq4FV7uB6cC3j8ymQ4TCjkWzJElOlhq9jT2EIkaZB2pvp4behzdPQOcCwTp2iU/SHCmH716LClSJ0HiF5GYjeTfwgbDhiqS/3HZmoH+LsfPL4iJbbjpHofCVI77JB6m3VI4FLkOLZNVs/cZ9ojsJ7gAr/ovd7XQl5ok= 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=WznPlILh; arc=none smtp.client-ip=209.85.218.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WznPlILh" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a7a81bd549eso408075466b.3 for ; Sat, 14 Sep 2024 23:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382458; x=1726987258; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eC/kfw8fP/MikLolFMSvfN+YF3ONZgmkBG/9V4Tu3L4=; b=WznPlILhx6DwDu7OQXbZKEki+8uWB1KkLKSLLOcnPsoSmir4oyFN4P3tyGHG89b4nD WWJsghiAzDhvLVX+95mezlKi9c2uwr72G1PBrjisAzIm7k3CVf/FC4mJLQupXteDcQWW fhIv1/Mh5f3Kr3o7DaBwnJxkBbp2VCurl90lHfRzbuwsgrfJF2+s69UygOD5gWh+7XVq u2209NjwdzOGPS2CjyLV+IoAPN9GN9PkWNEKBMobfoFJHCKuXs3+tr8XSiyABdHoHPgq zKR5II2Uw21bpGzI17cmFU2PbjACqwJqpm58NSz3cEx22jMllZU68rs3B+hkcW989CJ5 NOGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382458; x=1726987258; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eC/kfw8fP/MikLolFMSvfN+YF3ONZgmkBG/9V4Tu3L4=; b=GAmWyt4E+ZJYBCcl7WHO8rbpseZD+ENSUTePv+9YVXaU301OIB9sN6XhYVRK/Kl8XR vgcjQBZ3hgBAl6ojDws4z965YHDGQPIAPzTQ1JsItBr+sNhA9+UXNvYRSiR25dBfUdjM epD9kGK7PbBofxAtoJBebC5tgO176wuTuVvsnlJ/W3S78FzQyPixvKjpJqaCmHdEgkNr nj6Mre1Kahzre/rgp0jklpvz/EAvIm12U3Dk3mndnsyJOmeJSFcrSYyUovzlFmHQfDB1 WcMv1+KFvZdkIM+qBLE5uM3UBl6H+uMY9ZiBsC1IGIUTeL/NSJwe2Kh2yb1abGQUxrnH ofPg== X-Forwarded-Encrypted: i=1; AJvYcCWDqzySTWtHsE6+arNi1xvSlsEaIzwpSydw75Md6uuyuoUaYHIeTvRgVKmk45+EeSc+b4hFNgdkgS/ASKU=@vger.kernel.org X-Gm-Message-State: AOJu0Ywfn9GtAWO7f6kif5/cGk9AxPoemZV4YuzdJ3vhlPNysoqglsVX 8QoP8K8OkYCg6XzrJ6IkxvVuMt2ReHCP3rKdllc+LTOaKYhWbxyD X-Google-Smtp-Source: AGHT+IGQquk2jTrGNJ5jXz0fryYGBvUsxfpAEhOJeups2teTSbS1S/xyCYdIHw9wkzaCLdiTIX7+lQ== X-Received: by 2002:a17:907:e28f:b0:a8d:2ab2:c99e with SMTP id a640c23a62f3a-a9029730615mr1184068266b.55.1726382458576; Sat, 14 Sep 2024 23:40:58 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:40:58 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 02/17] staging: rtl8723bs: Remove unused function rtw_search_max_mac_id Date: Sun, 15 Sep 2024 08:38:16 +0200 Message-ID: <34c5f2ef44641c5151dde12b161d3f0aa963de5c.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function rtw_search_max_mac_id. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 18 ------------------ .../staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - 2 files changed, 19 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/stagi= ng/rtl8723bs/core/rtw_wlan_util.c index 2fb14f4ff1af..cd62ea47577c 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -1822,21 +1822,3 @@ void rtw_release_macid(struct adapter *padapter, str= uct sta_info *psta) } spin_unlock_bh(&pdvobj->lock); } - -/* For 8188E RA */ -u8 rtw_search_max_mac_id(struct adapter *padapter) -{ - u8 max_mac_id =3D 0; - struct dvobj_priv *pdvobj =3D adapter_to_dvobj(padapter); - int i; - - spin_lock_bh(&pdvobj->lock); - for (i =3D (NUM_STA-1); i >=3D 0 ; i--) { - if (pdvobj->macid[i] =3D=3D true) - break; - } - max_mac_id =3D i; - spin_unlock_bh(&pdvobj->lock); - - return max_mac_id; -} diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/sta= ging/rtl8723bs/include/rtw_mlme_ext.h index 8315399b64fd..82709ffc7bad 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -528,7 +528,6 @@ void rtw_camid_free(struct adapter *adapter, u8 cam_id); =20 extern void rtw_alloc_macid(struct adapter *padapter, struct sta_info *pst= a); extern void rtw_release_macid(struct adapter *padapter, struct sta_info *p= sta); -extern u8 rtw_search_max_mac_id(struct adapter *padapter); =20 void report_join_res(struct adapter *padapter, int res); void report_survey_event(struct adapter *padapter, union recv_frame *precv= _frame); --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 C81FF2232A for ; Sun, 15 Sep 2024 06:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382462; cv=none; b=pZmupWywv7TDyc21DKg7nIY5ny7k0vLqV9exS0UHcDLV/6pnnvcRdfw4fFarirG7ilWR0I8plUKp7aBFE8YV7ng+epBx/OVd9RayP27zupU8EJeD7OAu4ktNZ3/baR9FcS5dzpjBeJXo3+sISdyStqOHNx5NVDqSf0bpAFVLXig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382462; c=relaxed/simple; bh=L4ckoOgEcriXUQL/QwBl2nPhAj6DntXw9Idi22OGWEg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gXnzjvlzQCGYC5INFonS/U4VQHSpoa33pws6cmrniF+ZuU6O9C0MiekdVnxhXWH7pvQPTHYk7yHW3ImGMgDkhZT7Q2M1wLu+sMy61toRT9+Jg1PI/Uoopp17hxjDwOZEfqk/BWJShNb5usGWre/yRndn+ipbCtkObMKMyXwexqI= 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=gQWdpy1A; arc=none smtp.client-ip=209.85.218.43 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gQWdpy1A" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a8a7596b7dfso504166466b.0 for ; Sat, 14 Sep 2024 23:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382459; x=1726987259; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l4ZygK0P53MPJenBWV9IM3wiIoWtojdoXnHHdWub24s=; b=gQWdpy1ALWRLjyQB/2eDJD4TcupmaDlCPPd+7f9iYI4Y3A2fx5tkaN5bVwhQN/sYf6 vAX7lcERfWRakUKRZZRJc41a6R+BpV17iJnJKlMHNn0LN3sLw9/6mw9+Eaw0uXCX87me 8N/xBSQXk5Eg3TksYEhv+M+/g5RX8WeLu9LOxTKM3Ma1g2y5CbAlyrtEx1wRATL15nPT LVFKAaTN8yRerP8zDEmYOey9jnn+j9kzAf8/17RL3ny3WuPDmPjWihpcETcSfKRDpCzJ MrSlMEA8M6yyjcwOGWWse9hOLhVMaFzrYXxdmXapYYfEhNOsnRDEor0U/U1ob3rM0xdE wGRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382459; x=1726987259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l4ZygK0P53MPJenBWV9IM3wiIoWtojdoXnHHdWub24s=; b=Qo/beyl9nYma83o5fWi4M7rHGPN8py90jnzJF1ufd5uuPjPonUvvXv5BdIp/ljnAbW PIY2rHJUapSEmDoH4Oaw87nkgslUXwoRVpdt/jJFtvVRm4lsWZcKVDUpgntl93nKL5Pb gITA0YvwMAjxhJvNgRogsxFU4GCyYQ3kDXu961ReU2nbKwBwOLWsbIgv0PqDoOro81tp Qsg4OLryx8jwd/WgT1eB7xBDcM7KkEoj5MjGNHu8IRAZG8wXuf2AG0SCForEJmQeky7q oxtCma2wR2J6Y/hp/1uTsLXPQJyoSADixmd1C0JKTmOnb7pdxy4pOHB1kKYj1V8hUW4e 0Dhg== X-Forwarded-Encrypted: i=1; AJvYcCV4nE9UmYWU0P8O8/tN/nzR1y+WcfWuJtMqbk4cStDSpvWWwZDqfoPG5BeKna52CJKZHcv09bqiPGV2QIs=@vger.kernel.org X-Gm-Message-State: AOJu0YxHZ/PgjdOzMWsxrEjkQu46wFtD0kyhSPQ6xJgWoL+q/6xyXTjr KsDAktZQ+yQ8YCEMgJ8UTcP4ENrxBWWiWUITibuqOzuMGQPBt8eZ X-Google-Smtp-Source: AGHT+IG+uxlo7sFJ2vaJ7TVX2coDVGQhTxMRdW6BBaBH6eaD1KrSN6tp27pyrtkLpdwgT042uKGnkg== X-Received: by 2002:a17:906:7951:b0:a8d:481a:563a with SMTP id a640c23a62f3a-a8ffae040c5mr1829070466b.25.1726382459156; Sat, 14 Sep 2024 23:40:59 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:40:58 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 03/17] staging: rtl8723bs: Remove unused function read_cam Date: Sun, 15 Sep 2024 08:38:17 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function read_cam. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 13 ------------- drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/stagi= ng/rtl8723bs/core/rtw_wlan_util.c index cd62ea47577c..85215838a004 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -460,19 +460,6 @@ static u32 _ReadCAM(struct adapter *padapter, u32 addr) return rtw_read32(padapter, REG_CAMREAD); } =20 -void read_cam(struct adapter *padapter, u8 entry, u8 *get_key) -{ - u32 j, addr, cmd; - - addr =3D entry << 3; - - for (j =3D 0; j < 6; j++) { - cmd =3D _ReadCAM(padapter, addr+j); - if (j > 1) /* get key from cam */ - memcpy(get_key+(j-2)*4, &cmd, 4); - } -} - void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 = *key) { unsigned int i, val, addr; diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/sta= ging/rtl8723bs/include/rtw_mlme_ext.h index 82709ffc7bad..ba39435d1a10 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -459,8 +459,6 @@ void r8723bs_select_channel(struct adapter *padapter, u= nsigned char channel); =20 unsigned int decide_wait_for_beacon_timeout(unsigned int bcn_interval); =20 -void read_cam(struct adapter *padapter, u8 entry, u8 *get_key); - /* modify HW only */ void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 = *key); void _clear_cam_entry(struct adapter *padapter, u8 entry); --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 F31B0224EA for ; Sun, 15 Sep 2024 06:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382464; cv=none; b=qL4/AhdLaDc5gGyrykQHS/Kiat/wIdwziCQmtFefIlz0/l1hXYIo2HpqGgjzTunNBetWYo8FUIVmKJ77mPZ6eH/Xl/cbyLoRLIujC5DOXrB/IOJfeXZezw4OASM1N35EugTZZGknKz1zGkTaXSmJnxuGhpCR6EgjaHNnvXw1dqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382464; c=relaxed/simple; bh=J1eaPEGXQTggxvrag31RjvbO/OZwnbWAvNuMWEu8Z1o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WPCfqKODnxEqTEXR80/tM8ah5nyznw1x84yP0Elli6Za6tY1TPNgrSuqqSju/r8wYPv2cJU2yMh133uNs2Pd0NalRjoStoDa61p0ecESXNQNK4QgKyhTNr1cGHwx6i2gIY1Y3xt45hhngavUYWwmLnzNsF6J2t0RyXGuOIaJJE4= 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=Lei3/Jgv; arc=none smtp.client-ip=209.85.218.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lei3/Jgv" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a7a81bd549eso408076866b.3 for ; Sat, 14 Sep 2024 23:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382460; x=1726987260; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dtdv6H+0O9IYGXXcKB93eZPrd2Xv4iQ27EcAPr2FIFs=; b=Lei3/Jgv7AVo9LyKjz41QHUOTmx65fcRuSQkwXMcel8nHPK2XiK00goVKoNs/Ni8wZ iI5HEWldHpCffxazdJb44vf2msspN55tftYtuxa1QLXLoMGpf1koOEYw+AqZRC5xZZAg x0QsrxxheGl+ngti67TJFM5XTmkp3jl6vlogIshow8ynBc1M7DqHeQm8Sf5KGd3ZSGeV 67qHsA/QaX554YDQLWdXX0G2ym8Ov0AZ6xil5TOXJdUo3MpYwZ1hvTlYs82vP2qxknXP s+/GObBxSeuCC/FhiLHCLHq2IxG0yI8DubAHDp/YFqNbdomf11Q7JBYrYHn5ALJypaU8 mWRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382460; x=1726987260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dtdv6H+0O9IYGXXcKB93eZPrd2Xv4iQ27EcAPr2FIFs=; b=XL1fRIe/qzVXG9cBnXuuT4MaIQKr+5qyb8v2/QJbApMedocSy4X7QIElru96M8IaDC VAn19hVbRUX5LFN2Hv9jVOdbsuTjjCpabEMXJP/H69OJ+oZ06TVAJ4uW6l9t1OjjUwCS vdrx1fwql2XySBD7HBtHVwhOjUTj2YnaAtqMZ2Tk6NjOUAD5hAymx2FjWeeyAnrVzsIX DvH7ScLUkziAl7AP2GYe9WEGRCSs9Iim1SPLmQfcdQHTfKoiItoljdTQYehF98Ow1Fp/ T5uLqZh5TjPhFhRYjcQgtrq2ASesd5U9+TpNawBCQ9IJcjpLGQJWZcd50LfiBVZCJf3Q uQTA== X-Forwarded-Encrypted: i=1; AJvYcCXDJacltLSwFK0GQ/x3JK5ESNpQsvJyUuAiMRKBPeR+FVnw0rqRRMW9uQw78qxpd6PDYoMID4qA+cfiNw8=@vger.kernel.org X-Gm-Message-State: AOJu0Yx7Pee1fri5UbZ5Qn2qr6fb/BpLAzbgpS39yW8Olza3l0FptBKz 20XucA4S6XdLrSy7YLWBgwztjTfUW4ZcPdVxow/5SOMzM/WsS5DCEf1KCw== X-Google-Smtp-Source: AGHT+IHuv4df+s1zPsWeAfo3P2ZQTG12QhiqcUEflqhuSA7TDxUiFuZoUXwvwMRMIOQBAySGfFt5Fw== X-Received: by 2002:a17:906:cadc:b0:a8a:7501:de21 with SMTP id a640c23a62f3a-a90294ab552mr1091979866b.12.1726382459810; Sat, 14 Sep 2024 23:40:59 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:40:59 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 04/17] staging: rtl8723bs: Remove unused function rtw_get_oper_choffset Date: Sun, 15 Sep 2024 08:38:18 +0200 Message-ID: <23623deed7bb225c614693d9b871e2d6f49744a0.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function rtw_get_oper_choffset. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 5 ----- drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/stagi= ng/rtl8723bs/core/rtw_wlan_util.c index 85215838a004..a4cc48989445 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -300,11 +300,6 @@ inline void rtw_set_oper_bw(struct adapter *adapter, u= 8 bw) adapter_to_dvobj(adapter)->oper_bwmode =3D bw; } =20 -inline u8 rtw_get_oper_choffset(struct adapter *adapter) -{ - return adapter_to_dvobj(adapter)->oper_ch_offset; -} - inline void rtw_set_oper_choffset(struct adapter *adapter, u8 offset) { adapter_to_dvobj(adapter)->oper_ch_offset =3D offset; diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/sta= ging/rtl8723bs/include/rtw_mlme_ext.h index ba39435d1a10..479e90ff336c 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -449,7 +449,6 @@ u8 rtw_get_oper_ch(struct adapter *adapter); void rtw_set_oper_ch(struct adapter *adapter, u8 ch); u8 rtw_get_oper_bw(struct adapter *adapter); void rtw_set_oper_bw(struct adapter *adapter, u8 bw); -u8 rtw_get_oper_choffset(struct adapter *adapter); void rtw_set_oper_choffset(struct adapter *adapter, u8 offset); u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset); unsigned long rtw_get_on_cur_ch_time(struct adapter *adapter); --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 042E6225D6 for ; Sun, 15 Sep 2024 06:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382463; cv=none; b=YqKrWhto2tlDJVM0irqDl3R/r1Jlbd2Pe4qPO6AW41OYwUmusvQFC5bM9E45h5jAZHbfMXLG+WqTUbyhuoffEvlE7vtsJ6h9+U9zncW7wJ6W07LghzxU9+pMCrlXm63Hwl3gaAwq2PPrb+aik9WXMahF7riIwBPnVlp3gIrUhvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382463; c=relaxed/simple; bh=98wEUhIQg0oe7cqCfXtb9PvhfHYoR+LzgTdsHvJWDYI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UUhLaFpHG+g6Mqsjl9w9r+HCEwPk9FIPO7r9rfiFOqjMBeAvDAcPnDPhjW2zk897BMtYpUeIR8vPTRZQU9KZBm0HTP0BDoTx3rKoyDloWC+QkRf+Y4XtbQh9MjgX5dJrVNtXo3mJPjAYCHE3lFI9J0SlRhopgAZ6LJZePIpyTEo= 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=baEr3dih; arc=none smtp.client-ip=209.85.208.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="baEr3dih" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5c423d496abso1356960a12.3 for ; Sat, 14 Sep 2024 23:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382460; x=1726987260; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mytdCWz4Iuztl7wUallrWXgXAVacZn2drTPgnY2iPjQ=; b=baEr3dihyVIMikfRnAFtK+JRUk95k0M6M+BB+8S9+Ot5GLLPr1RdNaMT9JzDiqNkXi rqjE+9zS/O7O/Q7gL83g5XjmKcuu8v7CKawSMwvnHKsvY9tMkf1Hnmu3zqEGTXIU4LCb eoXLPE8vG2kcJWyYP/S9gnQasFmlqvbGNv6fupG4YnUuNg2MQ01Jbtvh5o+5DlPTLcqc xAuvNs2dXH2gw2UsL4CKnWo/Mg4oDW3IIt+AejV36vFPYBujHVInIINdt3caOjK50TpO 2yfkBc6Gq/MxW3E9ZNq+8pNUSjn5cl9JVGkKPeLT18UqF0WyLryYPm7AWcQyR7fef7Ba wVHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382460; x=1726987260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mytdCWz4Iuztl7wUallrWXgXAVacZn2drTPgnY2iPjQ=; b=QXL8Hkkxlb6FSEzSyNIfMYwTAaJBTRlknFtIP6KGoSXjiYqWdSzVRFqjrVmDfP3JxH c9cNLObjuxVvFhqiqApGzZh4dA3uJOK6yBHt9KIdJP5EVTnxnKCS41HTcSa8gtB4YpUl exed19VgGIsHni9AA4bjmlhV3k0xu0aPYjH4BJCiRFJ09WUuQpA3+JXH9wYvBo0Gt/C2 DH529CD3RieUC1EoFoCwUt/q1ULxyy65XXI2IAGYcJyBzbJINj5eeu9eGsVrBEHJB6/H OZjlbFsVcg3H0ecg4D00/+/5jZXbpYBqbSB5xPKqJoaDycn0HEZXOn5YXgZSdEqfT1aY U6bQ== X-Forwarded-Encrypted: i=1; AJvYcCUDziHpmq7TOn5AapntYSJOnB/zS2CulyEuUigrn6wzESFwyro6cr3kLF1uyXf7G7g6vQ2WqVnGlT2BbAA=@vger.kernel.org X-Gm-Message-State: AOJu0Yy4rjGc6RaIFAg8QePn7vEGxfAcO2fg3jsUdDIwm32hsVbJqNTX 1qUH9YtszYxfJZKvgPUQVCZPl9IQFJ/rXm4q3z5ZlvhOPrEKES+WDbtt7A== X-Google-Smtp-Source: AGHT+IHo9z81VjnaVgB+Goew5pVeM34br4ujYIIrCTB5Q4Wqd/Wut7NSV6Wcd+sQfylyH8FwfQX9LA== X-Received: by 2002:a05:6402:2687:b0:5c4:2448:87e9 with SMTP id 4fb4d7f45d1cf-5c424488a68mr12228752a12.0.1726382460360; Sat, 14 Sep 2024 23:41:00 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:00 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 05/17] staging: rtl8723bs: Remove unused function rtw_get_oper_bw Date: Sun, 15 Sep 2024 08:38:19 +0200 Message-ID: <5918320008abc9a14c00fd61f00b40f35f1a5bef.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function rtw_get_oper_bw. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 5 ----- drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/stagi= ng/rtl8723bs/core/rtw_wlan_util.c index a4cc48989445..4eee324385a3 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -290,11 +290,6 @@ inline void rtw_set_oper_ch(struct adapter *adapter, u= 8 ch) dvobj->oper_channel =3D ch; } =20 -inline u8 rtw_get_oper_bw(struct adapter *adapter) -{ - return adapter_to_dvobj(adapter)->oper_bwmode; -} - inline void rtw_set_oper_bw(struct adapter *adapter, u8 bw) { adapter_to_dvobj(adapter)->oper_bwmode =3D bw; diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/sta= ging/rtl8723bs/include/rtw_mlme_ext.h index 479e90ff336c..2080408743ef 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -447,7 +447,6 @@ void Set_MSR(struct adapter *padapter, u8 type); =20 u8 rtw_get_oper_ch(struct adapter *adapter); void rtw_set_oper_ch(struct adapter *adapter, u8 ch); -u8 rtw_get_oper_bw(struct adapter *adapter); void rtw_set_oper_bw(struct adapter *adapter, u8 bw); void rtw_set_oper_choffset(struct adapter *adapter, u8 offset); u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset); --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 F17E22E401 for ; Sun, 15 Sep 2024 06:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382464; cv=none; b=IxN3UgDjIY6BNrhoGJQIksB7iQirPt8gL3LQVvg3OvOOaWka50zdlXU1865im7UWPKd8dV8x/ftjRnJt7XJnjPVgVGxIaqrPD0b4ueuaxv/jXQQevkygXpXQBTt/ohBHsF0YRfXRZYrl7mzFPCAlU3F+X7/xx9bx0/emvYT4UnM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382464; c=relaxed/simple; bh=pFBLKa7eakDbJQvDx5GAJvRveZklRB0mvRHkGxKzFik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YypMQNNwPEVqiDhAdi9UXkE+bbkYcKdSBOafvSaCxkC/NZrAlUMKoR4x0EtRqRAYbs6GdM9R8Px5wv901X1t153hGSb0SQRrDuHJNk3ZfonVVgD1Z8TsWls9zQLO98j8qsdV0Oca70gNlgTf4UPz11/d0dVcVXNgDEEmrr972bI= 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=fy6MAaAg; arc=none smtp.client-ip=209.85.218.52 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fy6MAaAg" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a8ce5db8668so580724666b.1 for ; Sat, 14 Sep 2024 23:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382461; x=1726987261; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P3O7884USr5rmr1eBEbAXs5vHrzE6NgETmRQZwaRy8Y=; b=fy6MAaAg6wZpySAAbwaB4kf53vkpI90QIWCliVwiPCUijtnPYXoxdpwMUK6yiC0Fdn aZkdiNK6oQcDB8AxnezeatK/pbTpzC3WHT3jycJMOUYBOYDnOeOk5LlyWIsMA9ofZA/R Ad64Wf+YGQ/F4iTPJXvOTNaCnWzohsqoaTMHSxRaqehehrwGlLfxKy8VO0rR+EwmGQBW KY80IJWv+cG0MKIXdDwK815QDuR43P67kBLOeJtd4+xaoSix52L9XiPS6ace5Erga0ij e62MuMh5t9a6Qfnuz9h4gQ/WK8urailOiHfaS4yQb1jbKlax/9NrOHKkIYEeuSZ6cAW5 k7Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382461; x=1726987261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P3O7884USr5rmr1eBEbAXs5vHrzE6NgETmRQZwaRy8Y=; b=OJNbK35ep6IYDHtbdMm0x6bZd7YcL6RH6lZo43kbUQHeOLwDbrZSWHlImw+1mBZvj4 DMNaWrNQX/h4ip/LcaeQlmhtAqpT9LOLTbDI+YkRfOdQzwCQuaJAQdBhOD9SxI8hYc/V N69O2eT97im7VgrZes82vkvwClg1Zo/olq2eBU0JnuzckFfBLnjeG6FvWh5oHDZ6I8k2 oUCyLRdjtmQEUMB+ejxQpYoyf/8PsZ1UvchgPcqpjUT0JwaFaPSZHkHTep/hV+YWALzI 8uRvzL83pCwpZLA24BBU9/Y6Lf29dd14NoSCT2e0MBAM21SNOO2S+/lmNa77a7nEH0yJ 4dSA== X-Forwarded-Encrypted: i=1; AJvYcCXBKue+7Uy4NgY+vJLcl/GDbc1ZXQZtGvkG+UnpwAcz81wpIu4t7O8JXSNgyZDsawPDS4iO9sgS7FbwNYw=@vger.kernel.org X-Gm-Message-State: AOJu0YxAOvM8+uqMVYwKGUcAawqDGY1b3ac/uJ2TPeP96neoNTdh8NIb DV62vgqfQXhHtlapnc8oKkWboqcNT7HUtVRF8swoaQnTkNHMUt8f X-Google-Smtp-Source: AGHT+IGh+yadhr3UkyNRuLvLdwbD/v4caveq+WJuFsXtJJ6X9ZV6hphCFtdTRejkbk9v8+tNXBexKg== X-Received: by 2002:a17:907:f71b:b0:a7a:a892:8e05 with SMTP id a640c23a62f3a-a902949ac77mr1180375466b.33.1726382460935; Sat, 14 Sep 2024 23:41:00 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:00 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 06/17] staging: rtl8723bs: Remove unused function _ReadCAM Date: Sun, 15 Sep 2024 08:38:20 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function _ReadCAM. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/stagi= ng/rtl8723bs/core/rtw_wlan_util.c index 4eee324385a3..9bef4b9e2aca 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -435,21 +435,6 @@ void invalidate_cam_all(struct adapter *padapter) spin_unlock_bh(&cam_ctl->lock); } =20 -static u32 _ReadCAM(struct adapter *padapter, u32 addr) -{ - u32 count =3D 0, cmd; - - cmd =3D CAM_POLLINIG | addr; - rtw_write32(padapter, RWCAM, cmd); - - do { - if (0 =3D=3D (rtw_read32(padapter, REG_CAMCMD) & CAM_POLLINIG)) - break; - } while (count++ < 100); - - return rtw_read32(padapter, REG_CAMREAD); -} - void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 = *key) { unsigned int i, val, addr; --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 348D034CC4 for ; Sun, 15 Sep 2024 06:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382465; cv=none; b=OKk4fT438hEczzKTKh+djMdkg2szZa67gzMT/dGdb4T07tBRR9AgZO0UnR6/Liqw1yi/vyUW9u/WXGQH+Y+t03UmPpOWWp5JEy8UB10bBGL8crtBPvzTEatoAGV0TRHKGOIXaKESm4IWkurBYxKGAHcCs9A9kGafSx1AvIIh3UM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382465; c=relaxed/simple; bh=iIJHHvD6hIi5F9NhuzxcrKHikYBlB626qDKDva4Vs+M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NVKvt1vlNSTmgeQY7zbQ/Rydl+wx4FA72shmhsYGaehNfusqs31t5ALJozUEtj4KR8H8CZ3KlTxzMn2EG6IEwMnWRuIO89KpWZczLPBjiORgo3oEh7Hk2iGr3Zv129iM5UC7xsv3uqGVELY7o+OXZseh8BIgaNmfuBCCgsPW9jw= 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=nY14MR6T; arc=none smtp.client-ip=209.85.208.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nY14MR6T" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5c42bda005eso1264623a12.0 for ; Sat, 14 Sep 2024 23:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382461; x=1726987261; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jPmn81t7YtWekA4/H4IxuxrNCjYcPu5ddDUh0iFq82M=; b=nY14MR6TSCmXqq6C66wM2tiJCGhHoMEJV+wmPldIJYlf+OScOfEuMcygvMh6b8UeUE Ek8Jga9Sa3N4SpLo7KSwwzn+ToH9m1/2Ps5gO+wXkIyCUWspyfJywcpWwAXmTqEXLBmG fCf3uyl6Wvk9DIiQ++MuPtaWGEpzpWCIlLdJMcJfDFuRbj0ZQF0gWqgDXH101MyX9qE+ Y8mifRoUAaYrma3m+38/pwfSywg1zPbfm5vRY8BYqUANC1GDPsRQDMCHQbQ0+PsYpeYs bKvu8WSVrIZ0t6JJ+7vPwQCRN6w0LCrNc0cmeUK9wwc21VLgcd8FLIbvsnE/NVh0pJQP vgGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382461; x=1726987261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jPmn81t7YtWekA4/H4IxuxrNCjYcPu5ddDUh0iFq82M=; b=ZcpIQQqZYgoLIU36KFDR2RPpSYXNTcoUWgqGBTcsmMIMrZgy8io/vdaALUYEKEVuB2 UKMdpWEi+6P/yhm0vsY72a9yOCQXinIyrVBOoHGFd+HaE5AkOHERExXW3EiBTRfpnsUN yMzmpfX+v7uGQ01hTss9X19Pat0pF2DD64RlDzALiKouw+XEkhFZTuuJ/H9HrFCuFP37 b28O9aZ4lKFFelcA/ZCMtxzOwO2gHDaS4VwhtHg/vKqvNgozSpLoaVTI0Cc8QIYsh+FU oT8BgLp00pOyZJXbYXfxIcghlNzx8cgoqMQ0a8bC9MIjs4TV/vf2vecVYLeKJD6ZUgGX ENHQ== X-Forwarded-Encrypted: i=1; AJvYcCXGEJIiGN5F1hnzJwCtKLKsTn7uPIC8j9S+LAI3pq0FmbO/5NACepSpfyYCZp88Gh+808cOqe/vxdWZvQk=@vger.kernel.org X-Gm-Message-State: AOJu0Yyj8w4MxaWt+tYtqGhWzhaY4Bzek/Lu8xcUGczfCxAwpgzgao3o bXDbr7nqfLFWHY7+U7zFj4l0jXlQnW4t7QCsvVWvcZ0ql9Vl1p41JIVcCQ== X-Google-Smtp-Source: AGHT+IGIPMBHHwl+qqJdNNx5j3unKolOg43JEhn416q+U6DhqpT5ZNykHewg7J6H35cxRA7qiM8JxA== X-Received: by 2002:a17:907:7ea1:b0:a86:ae95:eba3 with SMTP id a640c23a62f3a-a9029690d69mr1124959266b.62.1726382461511; Sat, 14 Sep 2024 23:41:01 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:01 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 07/17] staging: rtl8723bs: Remove unused entries from struct hal_ops Date: Sun, 15 Sep 2024 08:38:21 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function pointers from struct hal_ops. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/include/hal_intf.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index efdd1f912b5d..f559a5c1fd16 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -162,8 +162,6 @@ enum hal_intf_ps_func { typedef s32 (*c2h_id_filter)(u8 *c2h_evt); =20 struct hal_ops { - u32 (*hal_power_on)(struct adapter *padapter); - void (*hal_power_off)(struct adapter *padapter); u32 (*hal_init)(struct adapter *padapter); u32 (*hal_deinit)(struct adapter *padapter); =20 @@ -171,7 +169,6 @@ struct hal_ops { =20 u32 (*inirp_init)(struct adapter *padapter); u32 (*inirp_deinit)(struct adapter *padapter); - void (*irp_reset)(struct adapter *padapter); =20 s32 (*init_xmit_priv)(struct adapter *padapter); void (*free_xmit_priv)(struct adapter *padapter); @@ -192,8 +189,6 @@ struct hal_ops { void (*enable_interrupt)(struct adapter *padapter); void (*disable_interrupt)(struct adapter *padapter); u8 (*check_ips_status)(struct adapter *padapter); - s32 (*interrupt_handler)(struct adapter *padapter); - void (*clear_interrupt)(struct adapter *padapter); void (*set_bwmode_handler)(struct adapter *padapter, enum channel_width B= andwidth, u8 Offset); void (*set_channel_handler)(struct adapter *padapter, u8 channel); void (*set_chnl_bw_handler)(struct adapter *padapter, u8 channel, enum ch= annel_width Bandwidth, u8 Offset40, u8 Offset80); @@ -224,8 +219,6 @@ struct hal_ops { void (*run_thread)(struct adapter *padapter); void (*cancel_thread)(struct adapter *padapter); =20 - u8 (*interface_ps_func)(struct adapter *padapter, enum hal_intf_ps_func e= func_id, u8 *val); - s32 (*hal_xmit)(struct adapter *padapter, struct xmit_frame *pxmitframe); /* * mgnt_xmit should be implemented to run in interrupt context --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 AF1011BDCF for ; Sun, 15 Sep 2024 06:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382465; cv=none; b=rLYOunIhtns7xz89ywdjVrbp/hqgzQhu6vV03kuIgaIG9bT7v79pAAk9POMUa4hu07WLCyrm3mvmMk1SozcuAWDld6kAT/pUDiOUE9gh9tikytGL1jPcQ4Pl6GPqbCzr6GBaX5/jx0ER8F94apfKlKc/xh436CYJQ2iOvkoHas0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382465; c=relaxed/simple; bh=x5sCgwLHh1A9huYqe0WPnMubIiLl4YyjkxXVTZFcEcg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qSkrhSBXzJCny0upCQW2y8G6clxSIrx1PL9iava/EwmIxQmhabipCkln+zwp5U7/PIVgqTaCwKncQcOnCJT+MoBs2weHwU5+uU0tXDRsNu9f4/juVKG7W+rrDBlDVVpuzYIqwjlqh2M82rZGiP/0d+DUEEVUHd3gh1x9+80hEZY= 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=ERlNHqw0; arc=none smtp.client-ip=209.85.218.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ERlNHqw0" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a8d56155f51so438094666b.2 for ; Sat, 14 Sep 2024 23:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382462; x=1726987262; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UJboqtmrxph9K3PVRnau8dONXpRrIv6lutqIff5OCzE=; b=ERlNHqw0wnewr3tEVTpV4ygCPLVqc7IzWHISs11NrNXdsOzdc0/9mKP+IsZ36qk3vl gl3jEjk+xUBOuhHG5ifq2D0SocXxMlSAlFSwYaPR2D+cpQSUl5vGNP+PxtueZU7ZYMUd OP/EYxV+CgcGUfKckZ9R2GnBi1Ov9v3AZgq8rewAzNEa+rC881T1Du8xgiEN569+FAAD vwnwdZEKdHpnoQEgxBlSRPGqWGv5BcTZtiYH7WU08X79h4p+VNqTy+tjx7YC71aho8CB dC3SS3TjR+YCSGYhmWjVgn817SLRFpZ/SzZ7B/FugmWOUVuY5d3UrSU+4hvd4lZYZcpj hc9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382462; x=1726987262; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UJboqtmrxph9K3PVRnau8dONXpRrIv6lutqIff5OCzE=; b=EnsFRmiHvDcg2IAPnEwcsksXCj4us0s8ZGJeuc9lhZWFcqw46c1YgaF2teNzKAum78 7MoSutk1WKb8jOkZkra4qP/VS9dhsfvysJxLred94kKEiRCmrd6TInjXNcc9Zkhzyec6 Yrq9Vj5MTG43BwXr25gnveyXh+rC8981tKolW0YQo2PIQwByDJsJ6GQpojfL8sa4xbZ5 U5LpnfQf0uWAHR7J68D5UipF46EoD9r/QfhOyxHIBUfvERZMDlEVHeYlL1Wn4FrWVgMg kZxaznZo/7Yr7rXE+9z3MFgC9XoYCkwEH0NLMDv82TUEt3HnoDx2L4NKoEuyOfN4jhs8 nq/g== X-Forwarded-Encrypted: i=1; AJvYcCWrOTYg4pm2sCIz3DNdVeXI/H/6V9IYy29dG4GQInJeyXXxtXCDHz07xjTq3thAHvdQDKKdXVheWOB+AAs=@vger.kernel.org X-Gm-Message-State: AOJu0Yz33tmD+0FFgOubdGGkGoAm833Am15nXxpWZWlTbuQW3jCvLJhf CYk8odyAbzu71BCgCVhUYcKeN8j7k+sITCylaOHlaWZpbC3mTuhW X-Google-Smtp-Source: AGHT+IHbsBoHDxfQcaBt/dZZWTkkFy+yzmgG3vfNRxAFyJj9u2P4jXYlDh4XR3q196DI7ZhpEf2IiQ== X-Received: by 2002:a17:907:d15:b0:a8b:6ee7:ba22 with SMTP id a640c23a62f3a-a90294ec2abmr1242653766b.39.1726382462111; Sat, 14 Sep 2024 23:41:02 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:01 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 08/17] staging: rtl8723bs: Remove unused function PHY_SetBWMode8723B Date: Sun, 15 Sep 2024 08:38:22 +0200 Message-ID: <4f3a76bce3dc309a179e588d184765e54816d3d9.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function PHY_SetBWMode8723B and belonging unused function pointer in struct hal_ops set_bwmode_handler. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c | 11 ----------- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - drivers/staging/rtl8723bs/include/hal_phy_cfg.h | 3 --- 4 files changed, 16 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 37ebbbf408ec..a44c1dd0f691 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1884,7 +1884,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) =20 pHalFunc->UpdateRAMaskHandler =3D &UpdateHalRAMask8723B; =20 - pHalFunc->set_bwmode_handler =3D &PHY_SetBWMode8723B; pHalFunc->set_channel_handler =3D &PHY_SwChnl8723B; pHalFunc->set_chnl_bw_handler =3D &PHY_SetSwChnlBWMode8723B; =20 diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c b/drivers/stag= ing/rtl8723bs/hal/rtl8723b_phycfg.c index 4ff092b7c9c9..a4ea124eb9ad 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c @@ -764,17 +764,6 @@ static void PHY_HandleSwChnlAndSetBW8723B( } } =20 -void PHY_SetBWMode8723B( - struct adapter *Adapter, - enum channel_width Bandwidth, /* 20M or 40M */ - unsigned char Offset /* Upper, Lower, or Don't care */ -) -{ - struct hal_com_data *pHalData =3D GET_HAL_DATA(Adapter); - - PHY_HandleSwChnlAndSetBW8723B(Adapter, false, true, pHalData->CurrentChan= nel, Bandwidth, Offset, Offset, pHalData->CurrentChannel); -} - /* Call after initialization */ void PHY_SwChnl8723B(struct adapter *Adapter, u8 channel) { diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index f559a5c1fd16..84da38c55d7e 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -189,7 +189,6 @@ struct hal_ops { void (*enable_interrupt)(struct adapter *padapter); void (*disable_interrupt)(struct adapter *padapter); u8 (*check_ips_status)(struct adapter *padapter); - void (*set_bwmode_handler)(struct adapter *padapter, enum channel_width B= andwidth, u8 Offset); void (*set_channel_handler)(struct adapter *padapter, u8 channel); void (*set_chnl_bw_handler)(struct adapter *padapter, u8 channel, enum ch= annel_width Bandwidth, u8 Offset40, u8 Offset80); =20 diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h b/drivers/stag= ing/rtl8723bs/include/hal_phy_cfg.h index ea494bcf830b..acf714946365 100644 --- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h +++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h @@ -53,9 +53,6 @@ void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s3= 2 *powerlevel); =20 void PHY_SetTxPowerLevel8723B(struct adapter *Adapter, u8 channel); =20 -void PHY_SetBWMode8723B(struct adapter *Adapter, enum channel_width Bandwi= dth, - unsigned char Offset); - /* Call after initialization */ void PHY_SwChnl8723B(struct adapter *Adapter, u8 channel); =20 --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 D21BA45005 for ; Sun, 15 Sep 2024 06:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382466; cv=none; b=b+fdpWRsPWUiMI6g/+2u23CB3fnmGi5BDhx7TktLbkUdSaYT5aMpOFjNDXr74+8WQ5HDTOxR+YvBh/ASQRRAUHpMjYQLf505wr971JY7442mbCP5fQqXQL4dh9PG0B5FhvJSkrtL9bbWLqXwwtUk84AervotcTpP27Sy1XitV6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382466; c=relaxed/simple; bh=Wg1QbwaWxoT7iSLjFPwAnB3DqOtoJi6uYhFbQKguFpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=inv15xqpRDIHZ0UV43shEYNDd7HP57fL5MSd171lFr/SVapmY+tQ+Ge6btiN8Je4SrP/EXdazVySLe8pmN2/1dIPH6ByyRV5YInRAfUHVEnF8lSBGVlSVo6of2h501aNFVaWbFGbf0CQVHEle52s9K7SCsl1LGt3EolR0qszQ/0= 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=Bo4uQ729; arc=none smtp.client-ip=209.85.208.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bo4uQ729" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5c2561e8041so2332756a12.2 for ; Sat, 14 Sep 2024 23:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382463; x=1726987263; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7PG4mVKpcaOCxtSJWDIjqvWmYtFbVY/4wBG00JhaxlE=; b=Bo4uQ729c2sUS8Au20RwEt5HBSWNepmpeqa1f55w+FzhVGFHZv3ZK8FSTakyrEZQxy NhWtN8zNdhGxaCyKHvRmwvsph0vfsdudjojZ/a0A9T470IiwsBGh2rZr8qYSZP5Yy20z 6oMpI2sPMMnSTEjEG33ui7wKndDjjDhbesROBmWaXRs5U6PTURQ7F76HKwUkJ0S9JbLn 1Fr+jeHlH4GjuLLLLuDIh55zdu1/fBppLkCEM2v3rlZP/5WjnvSeAeIaME3Gi/JQIGww aH7VjOHn+vKVzRlULIc6Dmpdd9fFqo1VJd/SMHlEz6FDgY3CoguFrYfIPu3oRe25dOUm mtaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382463; x=1726987263; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7PG4mVKpcaOCxtSJWDIjqvWmYtFbVY/4wBG00JhaxlE=; b=sAvv3RSYLN6yCwR3isJf1DFF8MgEKFcfTGKbXW0x1ORml+wTk3M78heET42TAxjkXQ T0cQWES0wrzu/5rqOipt6aHAgX6fQfrE885buHPRODPcq6pIAVKAragqgiHScBRAmGd/ uKQtt1lAqNIKHPbSrvBMpkfxHYWOFu7ql3LWXgK7654+1Xs5f+5xnYmX5H/dZJpDJLyM E6cyUwkWr8zvH8+IbW95gfqaK800nW7Vk3sAO8BLO6rfX0K2ZR8lMXVweftTKlPzwvdx +Kk2EA/i4VlEls0bxjWmWyVy+4mQ5xJcYpetBNjZKkHJRLaUs8r1Ajz5ULI3xUqCLgva CAfQ== X-Forwarded-Encrypted: i=1; AJvYcCXk21doTUvOOWZqYnyXTVXZZWGyKK8ckN6wPPqH9Er9BOURg2AEKYYVy4cvHvUBxaArwL5zVbtMFuw2pGY=@vger.kernel.org X-Gm-Message-State: AOJu0YwBYnsExmf3yBVhIYc3PPZvmTaR04wBqTEj4fgNWpIZEQvvyboH eJhhP9LGBbBAtJipgFWiEwsr3nl8OUIqHHQpxR78i5MySTg8VMOR X-Google-Smtp-Source: AGHT+IGzBDXgOeExOn/piQRC2BfIC/0QtfeBYVFqOREzn5ljU+1aF5j5jmwtqFwUmhj56kxpqGwknA== X-Received: by 2002:a17:907:608d:b0:a86:79a2:ab15 with SMTP id a640c23a62f3a-a9048102110mr738327966b.40.1726382462682; Sat, 14 Sep 2024 23:41:02 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:02 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 09/17] staging: rtl8723bs: Remove unused function PHY_GetTxPowerLevel8723B Date: Sun, 15 Sep 2024 08:38:23 +0200 Message-ID: <65e86a58b513c580325fe93cc47a114f51437eea.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function PHY_GetTxPowerLevel8723B and belonging unused function pointer in struct hal_ops get_tx_power_level_handler. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c | 4 ---- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - drivers/staging/rtl8723bs/include/hal_phy_cfg.h | 2 -- 4 files changed, 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index a44c1dd0f691..ea0a9849d28b 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1888,7 +1888,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->set_chnl_bw_handler =3D &PHY_SetSwChnlBWMode8723B; =20 pHalFunc->set_tx_power_level_handler =3D &PHY_SetTxPowerLevel8723B; - pHalFunc->get_tx_power_level_handler =3D &PHY_GetTxPowerLevel8723B; =20 pHalFunc->hal_dm_watchdog =3D &rtl8723b_HalDmWatchDog; pHalFunc->hal_dm_watchdog_in_lps =3D &rtl8723b_HalDmWatchDog_in_LPS; diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c b/drivers/stag= ing/rtl8723bs/hal/rtl8723b_phycfg.c index a4ea124eb9ad..d8709d40cb33 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c @@ -575,10 +575,6 @@ void PHY_SetTxPowerLevel8723B(struct adapter *Adapter,= u8 Channel) PHY_SetTxPowerLevelByPath(Adapter, Channel, RFPath); } =20 -void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s32 *powerlevel) -{ -} - static void phy_SetRegBW_8723B( struct adapter *Adapter, enum channel_width CurrentBW ) diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index 84da38c55d7e..be52288a2f1a 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -193,7 +193,6 @@ struct hal_ops { void (*set_chnl_bw_handler)(struct adapter *padapter, u8 channel, enum ch= annel_width Bandwidth, u8 Offset40, u8 Offset80); =20 void (*set_tx_power_level_handler)(struct adapter *padapter, u8 channel); - void (*get_tx_power_level_handler)(struct adapter *padapter, s32 *powerle= vel); =20 void (*hal_dm_watchdog)(struct adapter *padapter); void (*hal_dm_watchdog_in_lps)(struct adapter *padapter); diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h b/drivers/stag= ing/rtl8723bs/include/hal_phy_cfg.h index acf714946365..07bf0a8d019a 100644 --- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h +++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h @@ -49,8 +49,6 @@ void PHY_SetTxPowerIndex(struct adapter *Adapter, u32 Pow= erIndex, u8 PHY_GetTxPowerIndex(struct adapter *padapter, u8 RFPath, u8 Rate, enum channel_width BandWidth, u8 Channel); =20 -void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s32 *powerlevel); - void PHY_SetTxPowerLevel8723B(struct adapter *Adapter, u8 channel); =20 /* Call after initialization */ --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 335281B969 for ; Sun, 15 Sep 2024 06:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382467; cv=none; b=PHmNENB/CrfXRhetfR84uX4mxK+3JeKj9R4o372sce9uwLklax1CdPC/AMkPHGInY9WcnG6v8AuRtMa90V0rkVoDPcEIHmoQMHEvwCfeYOU7nlPZculuFq8wm1Smg4ZyP1SOT/I2TaWFDozRkRPYdOlSaHlOi03JLnjmtv6Bqbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382467; c=relaxed/simple; bh=a5crjG6Jddq5TLGHeq1dA3OJ6KtrrV01yt8198+rP3Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dvs8W5BPNzv0J+U80PYHCCGW1RYTMIL0qDdx6I+taVzRfdU2/aR0cak7oqmuDxjad8Fdi6OP3XdiwETMPxWhw8+CSj+LhLLpu31j8ee9MWtshCDr30We1CD7lY+fgCSaZkAvBNekUb5IPAewWuWY3EEz0Az0eDui3xPJ/JIGKTU= 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=YY2bcVIX; arc=none smtp.client-ip=209.85.208.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YY2bcVIX" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5c42c3aac99so964261a12.1 for ; Sat, 14 Sep 2024 23:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382463; x=1726987263; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lCKQznBlAnQUXLCvKwjvLEzsYMysS1pH5alHdQhZ4ts=; b=YY2bcVIX/HN/TRCitmpbf/5rouastpc0HgRvf35cyEj7gTwAWKSFuUOVNR0SWjB+wT Pd+nXffO+etgmW7Z7ltK8tWUIodqXfPyekV983RrIVLxkYxo3jH9SW7KjxZcLUpGwaUC 0p3QOAd3C3Bcw1KODPYIV4bNLUnqEctJz9tmccFXE60SddXjPL6vMdcyZdDuu8H6IZw7 PMqI4EYlvgMcvS1VuuOFmZ/myfqlsuBIm2QDKOB6g365y4imvCipgafFMih1SfS8Hh6+ bT/5ehYqsWBDezA/Ne/9FDtr2DdZQgaiby0zcuDjTNOZJC1jdx2+xC7f0TazF89/3CeV ql9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382463; x=1726987263; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lCKQznBlAnQUXLCvKwjvLEzsYMysS1pH5alHdQhZ4ts=; b=CLDTqeXJ5YjP4kQYjC1Nucot6xYg7GBlW/FwXxHs2K/3ff4Erhckl9LeUo/6WKa1M5 p+KuGZgvd26OwoxO72FnqAbrB+fnk20MQdWmFffRXRWYAev3PJx/pgezU88YcnexHy4A iHoHi04fffzpw6y04CLITeL8U9TjNz2KJx+q8yyIDmo6PyVUbDg5hSA1zGZAJoYsxeEB RlGt//VA0wZBabGx5t0nmdsfyr2AI1LFSqKfYs/h2HtQPrN20V7uPCh++zeKzek27e4Q LdWHSTrVvlXAfTk463HfCi2SVJilP3T7BXgC8kXSCBz/KodlQNpvCW+s16NL74ZJUZ8F jAMw== X-Forwarded-Encrypted: i=1; AJvYcCVvcU0Sf6sRLxx4D+Ox3ilr9yWcUWLdzliS7E1AmsdRCSs8hPIKw00rBUg+rx4RuYg6DQ5K7+JEt7gETNk=@vger.kernel.org X-Gm-Message-State: AOJu0YxES6A5dWImxo3QDLdbVKmnnmArUhlNZ8aYXxQbwNkZAqdKlMyN BzF9M1UCae6+jwuz1tmu8tDpsibVtHVhJRmwHV8kt00yQt+BR2wV X-Google-Smtp-Source: AGHT+IH3Qo3qoVwhy6W6PMQl3cATDFIfgQ+BNIpVB4bG98+aLYnxMKvbrqDUl6pSFw5dnIXDX+YVaw== X-Received: by 2002:a05:6402:3596:b0:5c4:2e8e:782f with SMTP id 4fb4d7f45d1cf-5c42e8e99f6mr6524506a12.17.1726382463481; Sat, 14 Sep 2024 23:41:03 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:03 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 10/17] staging: rtl8723bs: Remove unused function Hal_BT_EfusePowerSwitch Date: Sun, 15 Sep 2024 08:38:24 +0200 Message-ID: <2768736f969eaf935df1492ffd5afd98b05db11e.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function Hal_BT_EfusePowerSwitch and belonging unused function pointer in struct hal_ops BTEfusePowerSwitch. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 40 ------------------- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 41 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index ea0a9849d28b..4c6d9f1fa895 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -604,45 +604,6 @@ static void Hal_GetEfuseDefinition( #define EFUSE_ACCESS_ON_8723 0x69 /* For RTL8723 only. */ #define REG_EFUSE_ACCESS_8723 0x00CF /* Efuse access protection for RTL= 8723 */ =20 -/* */ -static void Hal_BT_EfusePowerSwitch( - struct adapter *padapter, u8 bWrite, u8 PwrState -) -{ - u8 tempval; - if (PwrState) { - /* enable BT power cut */ - /* 0x6A[14] =3D 1 */ - tempval =3D rtw_read8(padapter, 0x6B); - tempval |=3D BIT(6); - rtw_write8(padapter, 0x6B, tempval); - - /* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */ - /* So don't write 0x6A[14]=3D 1 and 0x6A[15]=3D 0 together! */ - msleep(1); - /* disable BT output isolation */ - /* 0x6A[15] =3D 0 */ - tempval =3D rtw_read8(padapter, 0x6B); - tempval &=3D ~BIT(7); - rtw_write8(padapter, 0x6B, tempval); - } else { - /* enable BT output isolation */ - /* 0x6A[15] =3D 1 */ - tempval =3D rtw_read8(padapter, 0x6B); - tempval |=3D BIT(7); - rtw_write8(padapter, 0x6B, tempval); - - /* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */ - /* So don't write 0x6A[14]=3D 1 and 0x6A[15]=3D 0 together! */ - - /* disable BT power cut */ - /* 0x6A[14] =3D 1 */ - tempval =3D rtw_read8(padapter, 0x6B); - tempval &=3D ~BIT(6); - rtw_write8(padapter, 0x6B, tempval); - } - -} static void Hal_EfusePowerSwitch( struct adapter *padapter, u8 bWrite, u8 PwrState ) @@ -1906,7 +1867,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->write_rfreg =3D &PHY_SetRFReg_8723B; =20 /* Efuse related function */ - pHalFunc->BTEfusePowerSwitch =3D &Hal_BT_EfusePowerSwitch; pHalFunc->EfusePowerSwitch =3D &Hal_EfusePowerSwitch; pHalFunc->ReadEFuse =3D &Hal_ReadEFuse; pHalFunc->EFUSEGetEfuseDefinition =3D &Hal_GetEfuseDefinition; diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index be52288a2f1a..d41f458d117e 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -230,7 +230,6 @@ struct hal_ops { void (*write_rfreg)(struct adapter *padapter, u8 eRFPath, u32 RegAddr, u3= 2 BitMask, u32 Data); =20 void (*EfusePowerSwitch)(struct adapter *padapter, u8 bWrite, u8 PwrState= ); - void (*BTEfusePowerSwitch)(struct adapter *padapter, u8 bWrite, u8 PwrSta= te); void (*ReadEFuse)(struct adapter *padapter, u8 efuseType, u16 _offset, u1= 6 _size_byte, u8 *pbuf, bool bPseudoTest); void (*EFUSEGetEfuseDefinition)(struct adapter *padapter, u8 efuseType, u= 8 type, void *pOut, bool bPseudoTest); u16 (*EfuseGetCurrentSize)(struct adapter *padapter, u8 efuseType, bool b= PseudoTest); --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 BD1E14AEC6 for ; Sun, 15 Sep 2024 06:41:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382467; cv=none; b=CUS9iE/yNBt2fU9awN29jXRidhdDDB13wWdybDo5uwyNJ5sAyiez7G0vxPk+NCwcFy0FjF1ANB3fjjI5nRTY9YpfcNibkChBKiASpL/N5hAARk4atDbLCd8yrNKvNcT6vt2glyI+XbLGWqSHSKZWvEmeTA+23GBW/E+9/GcJ8+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382467; c=relaxed/simple; bh=H/5C/7Pq0/4r9GEExQHKfhf+aom5wH/AOubWvKBdP9U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T653RHBHZqlTIwM4zPia+jRg0gFAPqTPqKyupFw9iEhwcjIjzQWlEDJ3/SEksRwycpQbmERjIP+yQiOlme4hQElgzDZ9Qz7alGJFi1y13Dor81rMMygStv1bW6nvf+Npc/7VonuLayMRZ2ULmm3llKdBitTGiQ6EIWEex2uwlnE= 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=ah/ZILws; arc=none smtp.client-ip=209.85.218.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ah/ZILws" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a8b155b5e9eso464903666b.1 for ; Sat, 14 Sep 2024 23:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382464; x=1726987264; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EDNe2JeoZZgOZzlo+ZuSEo9w+uQCIRKUr+z91NOOW5g=; b=ah/ZILwsDsXd5B6pdc1iccrwFebjo/U/l1ozMlmz73wrweU6U+vmqQ7+liy7WhcVhl TjtEItQmYdsXnwSMiI43rOMVkEhGXoSJ27GxJdvlxBG4iIKE22hRP29akTy+CnxM4D7I tnIwCGrLfG4RDtePIA4E2QO7lASS1sYqcIELh8mT35JzBZ801VblkQOKwOmIwlzEWxfu 3X6vPtE8YXOlRTMVaGQt/aYbkxtsYRIgkpt0GRD7B30hMfdAS3k+yVMxY5+Y8g7YYBsP WAi/oerr0yWhmiF3KDElPbAyy7kgoLvnD7l57i3r1ilf4kDMQVCxHpM86jfbxibAGl8r QKsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382464; x=1726987264; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EDNe2JeoZZgOZzlo+ZuSEo9w+uQCIRKUr+z91NOOW5g=; b=oLRoZgdkJiGsjRk5TwqdFdzuDWGtQD1UzXxuHfiqYqknKdSvZwinpk/+Q6dvL21D+B 1l3LiaKemdYkAZu0HwRDVDZXC1rVdAoPFlMbOpl/2PG1kHhttqMvl6g46lw6HbADprv9 uQVjwUUfDBobn3ZSqnukKOHvpqhoZh5z+b9eLcGSOCfQ2t6CbGWpM1YRJc42kVQkgNND qJ+tCy70riT/z4oqfpk9CAVVK3IkZzpPTYVdRSXG5jBNGJqohqFhao5imxaUQ6zBQzOL IcDZ2USJ3+HFtl+3aNceUe/w0F95Z/wjZz1wGR8zI21PnzrDLqNsSU/h6c6EzIUi9x78 Wz9A== X-Forwarded-Encrypted: i=1; AJvYcCWAgPsfTXBRAU1zgIvX9JFVm+Ej7YuTzbie+waxlWeVbMFsUQgABKFR4XblbRY1dzlXdB+PMdrMmDK1UjE=@vger.kernel.org X-Gm-Message-State: AOJu0YzOS5iIjqvHpg5SWDHCU+TSIq8trkdBfRxcYH+8i/lAw+MuJS3J IJsLVrG9PSBdNBmClYkIQLMS5zKUIvFn3bBc4skE5SF7imRYIDIW X-Google-Smtp-Source: AGHT+IE9US5RPXllkXRUFCp55JqjWjrH62fOS+qtz8JPFE/cglfP6G+solJ9l7DIQZ2Aum5hIcsKAw== X-Received: by 2002:a17:907:f1a2:b0:a8d:250a:52b2 with SMTP id a640c23a62f3a-a90293c543emr983350166b.6.1726382464054; Sat, 14 Sep 2024 23:41:04 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:03 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 11/17] staging: rtl8723bs: Remove unused function rtl8723b_GetHalODMVar Date: Sun, 15 Sep 2024 08:38:25 +0200 Message-ID: <3837617badf7c81b2914074b56c5064276eb1946.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function rtl8723b_GetHalODMVar and belonging unused function pointer in struct hal_ops GetHalODMVarHandler. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 11 ----------- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 12 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/st= aging/rtl8723bs/hal/rtl8723b_hal_init.c index 4c6d9f1fa895..33ae1ae51a30 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -1769,16 +1769,6 @@ static void rtl8723b_SetBeaconRelatedRegisters(struc= t adapter *padapter) rtw_write8(padapter, bcn_ctrl_reg, val8); } =20 -static void rtl8723b_GetHalODMVar( - struct adapter *Adapter, - enum hal_odm_variable eVariable, - void *pValue1, - void *pValue2 -) -{ - GetHalODMVar(Adapter, eVariable, pValue1, pValue2); -} - static void rtl8723b_SetHalODMVar( struct adapter *Adapter, enum hal_odm_variable eVariable, @@ -1876,7 +1866,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->Efuse_WordEnableDataWrite =3D &Hal_EfuseWordEnableDataWrite; pHalFunc->Efuse_PgPacketWrite_BT =3D &Hal_EfusePgPacketWrite_BT; =20 - pHalFunc->GetHalODMVarHandler =3D &rtl8723b_GetHalODMVar; pHalFunc->SetHalODMVarHandler =3D &rtl8723b_SetHalODMVar; =20 pHalFunc->xmit_thread_handler =3D &hal_xmit_handler; diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index d41f458d117e..73b6c4d199c3 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -206,7 +206,6 @@ struct hal_ops { u8 (*GetHalDefVarHandler)(struct adapter *padapter, enum hal_def_variable= eVariable, void *pValue); u8 (*SetHalDefVarHandler)(struct adapter *padapter, enum hal_def_variable= eVariable, void *pValue); =20 - void (*GetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, void *pValue2); void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variab= le eVariable, void *pValue1, bool bSet); =20 void (*UpdateRAMaskHandler)(struct adapter *padapter, u32 mac_id, u8 rssi= _level); --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 5B50469D2B for ; Sun, 15 Sep 2024 06:41:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382468; cv=none; b=dZDOP+C15gZ6U4GzV/3V9Nu/jwSA2sDEanQg0ADSAoZ7yZXoKVZ340oiDaXwzAy93vVqyn4KPCF3wpvFEt3rIUXf3mOV9gWCf12OA+B5A/cCR4a1KsKTwxtTiaj1bCCZGZxwQnqIhs0W+GIv9CU7GAq11gMjuJMejRy1KZTkiXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382468; c=relaxed/simple; bh=Vy4Z7ogZT6V1enSiVeEgUoSoj9IL1IcG0eoH+OHj+Wg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F7Rx+Qcgm7pmDprD0GgmKUHJ04GyzB3Zyrq3Z+3CBtRsdC/9M0K92yYL3YiUj7XFpWTA+mjymTTWxcidmrk5G4QtGRBJfMrucKHxLwq5wM/Uolk9gc9/TXsdVXF0f2PWh6EaGQ91ISNhf6Ui7f5jZDEglGsdYCYq6zrkPeVAke0= 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=OlThFiGf; arc=none smtp.client-ip=209.85.218.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OlThFiGf" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a8d60e23b33so437837966b.0 for ; Sat, 14 Sep 2024 23:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382465; x=1726987265; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uRQIYYPh7+sB41jLCAlLwMG5cR5oSUg70pK1/hkRhBQ=; b=OlThFiGf9cdUrCQsV9jq7I9dzT5YtS2p/jKFXxxfEodik1MhPWCAijCJINYoYRhiQD 6y/knQQE7W8KXqEBryYFKMtcSPQvuO4j/38KK45z3KcP0HAQdDf6E+h8HI1bytBbTSYX wioCSapxcpPc5npMUiafNE/lSZUSUyVAenu1BOtfZhujV5VGB+X3QznHJ/9ZwrIZmY8D TNv7lOaYcmI6yTep4Syvdp7SG9SiZC7OPkifDv+n28m/Bn93t6gsFt8lMX5jjlEu6KYM CuY4l4eEhPnTdj/Os4LnvtVQPDe1aIrglNFJ8ZxiNoTZJqahLRlxq979ajjT06y29agQ 0ZWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382465; x=1726987265; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uRQIYYPh7+sB41jLCAlLwMG5cR5oSUg70pK1/hkRhBQ=; b=hyFKikiKFrayE/6vaNJP2aLWLorYuHtUn9SGICSTqVTCuiNxBwABIzIsv9XepJYfM8 KYnlGVOOzLp+4JMHOkkLwqmHzh4I51nsmRYvLwACChWnaqvSySr5fazCMBhII6LC2AxN 5qeYssLPF4pXQCQ/BTC7tSEVjRIdswP6sjS2p3KiS/6+b67AK5eNsMFCCiQ4bNOSJvD9 J0BgD3tP/Dp8pF3NCD9nn8Qn/W5O3RTBj/obVn4km0/fEyob0o6gQ0GVxLnJ8HxYhEVi 241a6lsaoFo5htL+EzbcVBbCYHHtMg9yp8nyo94rHEU+iRWL/tpJcUYUdpaydNnRUvqO mYjQ== X-Forwarded-Encrypted: i=1; AJvYcCUxFsis1fM143sL1scFD2JYFsCsQgRocRYtEllu9mGLnNAI3BqEPuASymKRekN/4bX2bepMyikIbIPNXHI=@vger.kernel.org X-Gm-Message-State: AOJu0YzBuueU93HGPdZhVDAjnghavAP64/iny4gV4hp0xXNcJm5AtMaf o8VNN7bzFxqVQ+NPhsx21ldiPCkMWF31VXiI3tgDNDSMUfMaARba X-Google-Smtp-Source: AGHT+IHP6XQs1lHVokE4Zc1X7LdOcT6wFW2nV7n9gM1PvFIrsqe/YisTi4556BKADZNBHqsNr6q7Xw== X-Received: by 2002:a17:907:f1e5:b0:a8c:78a5:8fc4 with SMTP id a640c23a62f3a-a902947d512mr1057428366b.19.1726382464789; Sat, 14 Sep 2024 23:41:04 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:04 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 12/17] staging: rtl8723bs: Remove unused function GetHalODMVar Date: Sun, 15 Sep 2024 08:38:26 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function GetHalODMVar. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/hal/hal_com.c | 13 ------------- drivers/staging/rtl8723bs/include/hal_com.h | 4 ---- 2 files changed, 17 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8= 723bs/hal/hal_com.c index 719dd116d807..492889c837d9 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -796,19 +796,6 @@ u8 GetHalDefVar( return bResult; } =20 -void GetHalODMVar( - struct adapter *Adapter, - enum hal_odm_variable eVariable, - void *pValue1, - void *pValue2 -) -{ - switch (eVariable) { - default: - break; - } -} - void SetHalODMVar( struct adapter *Adapter, enum hal_odm_variable eVariable, diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/= rtl8723bs/include/hal_com.h index 17d5cfb66a36..4db93484725f 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -158,10 +158,6 @@ void rtw_dump_raw_rssi_info(struct adapter *padapter); =20 void rtw_bb_rf_gain_offset(struct adapter *padapter); =20 -void GetHalODMVar(struct adapter *Adapter, - enum hal_odm_variable eVariable, - void *pValue1, - void *pValue2); void SetHalODMVar( struct adapter *Adapter, enum hal_odm_variable eVariable, --=20 2.43.0 From nobody Fri Nov 29 21:00:15 2024 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 32A2D7FBD1 for ; Sun, 15 Sep 2024 06:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382469; cv=none; b=In+bK4440VxeCEtWREbUD2+VKVisP6DDyu3cjAfk9TvXUHmRJ39lG39ucSyAiLLhgyAQIp+pK1V4onzkpHOUrsNYbAupXwselR0Jhbr8hMXpCB3/uvLPVFsXFOvSc/k3BLFy7dv5uAglaPypKvL8z09VIVffzJBksJ1yVpEZPng= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382469; c=relaxed/simple; bh=h9V7Ghl5P4/1F4b4WHbT0bOdMUDLi3kP3qcWsoffqKI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZdKUDLMf6mMounFFGsfra63XXmLEmgIHz1i31xXUqPtc2kYssYmCi0a4beBCuJc1BfqsyOmGIlk/37VLbU+39k/C1UV/ZhlfJgBV/ZDeNEMgwIBIiZAVy0BFI8b4RaKem4wqYtAtiEg3X+3cnRju8SAk+9dkM6wTNtODyIgqqkI= 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=GyeqIcMB; arc=none smtp.client-ip=209.85.218.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GyeqIcMB" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a8a6d1766a7so436947966b.3 for ; Sat, 14 Sep 2024 23:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382465; x=1726987265; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=trv9Z7LRh7POQ7levyTVtahqiIPQOrS27lYcldQAO3s=; b=GyeqIcMBxX0QL8Aj6OUHiIBjsrkn/LexerCWbNiKz2eq3XlzvUrSGjTLBUyWanz2X+ rnQyL06Sd5pPhXOcEenEc5k093Du1Hq3WU17sg+aTXieMuqH5L7U59SJb16KIUvDOb6q +DhiUPtBa+hHm2dORujM83R0XH7VOxESDeAM2q5Tf5t4BkqaNa+Bb+Gd08c7F6IqD3jf zIXF3YSKS26REdNdPZa9l+GFm8PtVGFu6MBwNS08dxB2/Xtv9tolqTR3gxYcnC+oJwAS TqKW/BEdi3vmXEG/rkxurb4ORGHWJeEbzTnDTPSSFclTZ7B5p3nSrhIUtGWkRGcjUk12 GLYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382465; x=1726987265; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=trv9Z7LRh7POQ7levyTVtahqiIPQOrS27lYcldQAO3s=; b=gd6sYyePu61mUbeWSmtW1Z1H3dFun59ZrD/F3fkmJ3IP8qK24PvBw9CFZLUzFP+Ooo atfN8nwG4o1h9Jy6/hxbpJ36N9i8qwbc/P1Aane4ypGZVet5KTPawxjCgEOUKu8XYWcY VnP6XVICgm6DTX9jQhOQx3wtBf0HNzYGA0v15JRRvl8NnpmUvJi3UFwrOMmjSGWKGP/q S912qxp59q2oP6Ur7d9RQu9DSRTNzW0JBcZysozoTKGRKPYAb9P5RGU9bxBSYslK7Dr9 GsoteDkAcz6JpjDstEc3APKQbDTn/prHa7YRx4pl16+RfoZ4GkOl4MlOXVRc4zXEwiM7 wf1w== X-Forwarded-Encrypted: i=1; AJvYcCUHn8AwIUSJjCtIqtkIWtDP7fVSCaUdIl7X6OqpkSS1u7b0SOJXdfd2auHooYF0uFT2mLzTK4zaQrOWrVs=@vger.kernel.org X-Gm-Message-State: AOJu0Yx/9otRtcv42FtXjwYCV+WSi1a/mjJlAvliukFt6SQ0yCGN1yeh ZfKPf3ZM1MRSOwtJUCprM5ZdbSX/Zu3nTvK5cIHA/7QC9Oa2ezl6QWtsAA== X-Google-Smtp-Source: AGHT+IEF/Zm1DMZVZpX+ITdOiper6SsIl0DpHr22GnH7r6/Ax7JA/xHyyO/k5+GCFDEY9PsngeKE7Q== X-Received: by 2002:a17:907:97ce:b0:a79:82c1:a5b2 with SMTP id a640c23a62f3a-a90293b1881mr1072358666b.9.1726382465378; Sat, 14 Sep 2024 23:41:05 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:05 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 13/17] staging: rtl8723bs: Remove unused function rtl8723bs_inirp_init Date: Sun, 15 Sep 2024 08:38:27 +0200 Message-ID: <617f5fe59abf5f44c70566db60cc624e304c678f.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function rtl8723bs_inirp_init and belonging unused function pointer in struct hal_ops inirp_init. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 6 ------ drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging= /rtl8723bs/hal/sdio_halinit.c index d3aae413fc0f..93d455aabccf 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c @@ -937,11 +937,6 @@ static u32 rtl8723bs_hal_deinit(struct adapter *padapt= er) return _SUCCESS; } =20 -static u32 rtl8723bs_inirp_init(struct adapter *padapter) -{ - return _SUCCESS; -} - static u32 rtl8723bs_inirp_deinit(struct adapter *padapter) { return _SUCCESS; @@ -1272,7 +1267,6 @@ void rtl8723bs_set_hal_ops(struct adapter *padapter) pHalFunc->hal_init =3D &rtl8723bs_hal_init; pHalFunc->hal_deinit =3D &rtl8723bs_hal_deinit; =20 - pHalFunc->inirp_init =3D &rtl8723bs_inirp_init; pHalFunc->inirp_deinit =3D &rtl8723bs_inirp_deinit; =20 pHalFunc->init_xmit_priv =3D &rtl8723bs_init_xmit_priv; diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index 73b6c4d199c3..0fc3622806a0 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -167,7 +167,6 @@ struct hal_ops { =20 void (*free_hal_data)(struct adapter *padapter); =20 - u32 (*inirp_init)(struct adapter *padapter); u32 (*inirp_deinit)(struct adapter *padapter); =20 s32 (*init_xmit_priv)(struct adapter *padapter); --=20 2.43.0 From nobody Fri Nov 29 21:00:16 2024 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 C7B4312C54B for ; Sun, 15 Sep 2024 06:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382470; cv=none; b=Lfm9HoJdt8b3cQe5ZfoVtLebYbyaOFClZX9oOCC56/UnkIMvaPoOCmpkQPo3ZfI4yPDExxD/QIKF7OFeaDJgp3yNCrz43R5VQLtrVmZVcuDA9TgNlyzPoYXO4o/EyfRwTkOuPA/fn5njTcNef7lzx1Ibnhjb8RTraq3fDyBDC4g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382470; c=relaxed/simple; bh=Js4POPVp7tcPzGMNrSOimc33cvs8JgbNabVDIlLIGDE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SFm8NGESt0AfJOeXXem9V8G0Sw2/zqFFbhemZzaWNNCWpFUCyq7RGzCXF46QBqY6ILOoYzKQ/b1zUOC2ic5ua/SCG0gFSYNFLWFC1/e8aCOfcSvr5Oj0Wqy/sqWWdxkKL+xd1XddzUXkkO7WAPYs9qgEGjPHLtiWnPqry6S+Bok= 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=fYCdBib+; arc=none smtp.client-ip=209.85.218.52 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fYCdBib+" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a8d4093722bso475956566b.0 for ; Sat, 14 Sep 2024 23:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382466; x=1726987266; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aghDyGl0md6PciwZ2vSqAUp9KqGz/7+l1dC8yB+1Yqw=; b=fYCdBib+zxZZyy+fulrpVQW9Eg58wjv7PDjEI8AGkIyGDFzTCxyPtaMmqOSkx2Bic1 dQ7OYsqDEhcmpzAaDPEh4LnyxqwOfOm1kq5YltQUfCy7E+rfDOJWSkgrGx4a1J9jzKFM B9oVi3dovrjXCueYiI7APm7HI6MmlYce/hNC7HfTrH9MhJf5hrexFs2udtP2jDg4kata L9zE25v81QR726ySW+nGUB/5H+sgK48uCIGe4xAMnMRmZTweBkSKXwGjN1mVsd4xadeE laNw4V+N0Jn0gV73VfHhqeawzZ1IXjw5GoD5vd5hKumy4KVmaA5sBGeOrBwyTGFp9ACw uBkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382466; x=1726987266; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aghDyGl0md6PciwZ2vSqAUp9KqGz/7+l1dC8yB+1Yqw=; b=AxxdOSu0tlk4rNGYQnZZ5jBAO4j3HMHcgjGl4X8Uze8ySpAjajCmZfKOeujxhX8+N0 Js3TAcmieXE4dRx36l8/EjIW2w0hcUrHL7GX5kDz7ilFUgVn+L9ry56SJ4LWs4UdLf7B pfwN7qc9IN0h9UePB7ewmTT541n9laLI8O9TTuhWtWNi6IGi02kagneAQN6GLXS4Q1mK C3wdOpCLuARDTUjzcjlrw8mQPhProAs/6EM8RJxlrPorRZzNMQVT/M/l53ILE+n9rJDD YCUyNhqA8GYkwCYfXTTR6M07HXutJkpsieJK5Y4jq+o8YOv8gaBQ2fNlS8WkgpHv+C4T tztg== X-Forwarded-Encrypted: i=1; AJvYcCU7I3cSoVarqdwQ0JMbwsOymevwMhu0+tZ0/NXNJSXjNpuSZC7POW4Yb+qlZdpzdOWjL267X3BfgxUBsq0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz5TQVAttr7/YZS+SUZ/W6c9Rmgk1Mj0Ng7qpW7rKm/4LEiVOMT khjeD+v39IKVhugaRLn2+LJISbiVyonOyz4xcnDFvtsVT7O1THMd X-Google-Smtp-Source: AGHT+IGUe6mOCXY/8tTVFtjgkN+PaIY7q6WDjNrztOo+eP2BuvEbj+IHGYSASnkGSSuGYMBK7sAl0w== X-Received: by 2002:a17:907:7f92:b0:a8a:6e35:31ef with SMTP id a640c23a62f3a-a902961d872mr1323344866b.49.1726382466147; Sat, 14 Sep 2024 23:41:06 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:05 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 14/17] staging: rtl8723bs: Remove unused function rtl8723bs_inirp_deinit Date: Sun, 15 Sep 2024 08:38:28 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused function rtl8723bs_inirp_deinit and belonging unused function pointer in struct hal_ops inirp_deinit. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 7 ------- drivers/staging/rtl8723bs/include/hal_intf.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging= /rtl8723bs/hal/sdio_halinit.c index 93d455aabccf..c54d6dc1a495 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c @@ -937,11 +937,6 @@ static u32 rtl8723bs_hal_deinit(struct adapter *padapt= er) return _SUCCESS; } =20 -static u32 rtl8723bs_inirp_deinit(struct adapter *padapter) -{ - return _SUCCESS; -} - static void rtl8723bs_init_default_value(struct adapter *padapter) { struct hal_com_data *pHalData; @@ -1267,8 +1262,6 @@ void rtl8723bs_set_hal_ops(struct adapter *padapter) pHalFunc->hal_init =3D &rtl8723bs_hal_init; pHalFunc->hal_deinit =3D &rtl8723bs_hal_deinit; =20 - pHalFunc->inirp_deinit =3D &rtl8723bs_inirp_deinit; - pHalFunc->init_xmit_priv =3D &rtl8723bs_init_xmit_priv; pHalFunc->free_xmit_priv =3D &rtl8723bs_free_xmit_priv; =20 diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging= /rtl8723bs/include/hal_intf.h index 0fc3622806a0..d959be13fcf3 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -167,8 +167,6 @@ struct hal_ops { =20 void (*free_hal_data)(struct adapter *padapter); =20 - u32 (*inirp_deinit)(struct adapter *padapter); - s32 (*init_xmit_priv)(struct adapter *padapter); void (*free_xmit_priv)(struct adapter *padapter); =20 --=20 2.43.0 From nobody Fri Nov 29 21:00:16 2024 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 A472F138490 for ; Sun, 15 Sep 2024 06:41:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382470; cv=none; b=aA/ZTY1m+d8E+8Xi2jxF4VYu/UV9DYBlz6ZF1LgyzrFkdOVm1baPeE6O0HfY1xQD9K3Mh5FfAKhLIaI91qP519xT0PwZ+vY/KUcSElrGhT5PmBXqrXkHcZ3k8/2Urs9NFIHgFLzNORhiD2AxSyvae4XQSK0zbddcLGT1zwHM7QQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382470; c=relaxed/simple; bh=bm+in/bZDdZsW5nXDYNaRP5O//JBB6QrnQLOajvKobg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O0M1kJe18LmAw7LJQQNXiBp/24XHYt07Z50oPRCtAI2GXj/kleV6F8oh/hGkLCpAm/a8G516fhQB+TMui4dUDhxYmTWK3JOltnTWPey3+rhC0Q6wC0Bmuwm6YZGPvbqs8OtXBd+8Eah92KTXilA/2bpNTq5EHHz7rqMg3SmB2Mo= 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=bKDNzxH5; arc=none smtp.client-ip=209.85.218.52 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bKDNzxH5" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a8d446adf6eso310157266b.2 for ; Sat, 14 Sep 2024 23:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382467; x=1726987267; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cm+krPeLY9fFAcvaYveFPeUshUV7bz2PqQAG4Jxxyls=; b=bKDNzxH5HLSu9eqgYpysxNCJcQ0pClCxiDK2lg4JFICYXxLlwkhFwEivRgqR3x7RfQ TCFTvM6X8MmZClz3qg3edFEay0Ti3wy2xOG/j+2pYj8/KCKQET5MvPE45UaA2zUfXAGu BFEc0XxLF62cHe26PYLLaaQCmcVO5JBnPMtya5YNK5Ay7E+EB8TkZ+TJag2ZAOGELO56 inbzqq4jT0UamLR1tNa9sQfK8oNKHr2gN0czVBZ3cucpzZEJXzXduL0dP94u772oRRoa TCN+/PNM2XSqJ+HMKAUanhcZxdjxBS11Bm3QTSS5x+om3bPOwLGSVRPT3tWvKzPNd7b9 zwEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382467; x=1726987267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cm+krPeLY9fFAcvaYveFPeUshUV7bz2PqQAG4Jxxyls=; b=JMoZQ2yZ3uRuxbFWk1EZCwPgRLhLeHvL6i64gIUJaw0KkqSjGSZ/9pAifuKpFGFuqG ZU8MGQLgLVIYOBfFxGa/c6RANktwxAP7KtwTLUhlgjqplLfsYQpEn59KtYz9a8Wz+AVz cyQfjJ7Uo59oTztiEYjuh/WfcG/P5NsWR7u8z3x/4L4NQkjIDwHkQiYuMDKpdc+U24FC rBZJ32+O2g+YvvFYia9pIizE/uhrJ4AlRMiTHeQWb0QNbAzODZrJgGCkAn8xebph68rc rJQTj3iApOeReqsmfqFfXLKrDgoCSi+yw4lWUb/hBG9i9aKf6D2h5XQgnMTsQx/udW8K tPGw== X-Forwarded-Encrypted: i=1; AJvYcCXzWsydPahLiHoIcLrspUk/K/+K0GaoXMJug/v3io3oc7W3U6YAnjEiU+5Uaz7ccvvi610ADc5azaATQew=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8Pngo3D8Wv2YZdGNMuDoWKYQGUI4qPGNO1D4WJhAzESIceQa3 4XRMZPm17rwniF1K/Ru13LCEQrtzE8JqzjrxkAvGll2uEH62X1nd X-Google-Smtp-Source: AGHT+IGE5HTMbCYIzpxuBe7fuhRw7NH64mpLb1onb15wZ9MY3bfSQSVV464OieoNFhSmB+8uo2crDA== X-Received: by 2002:a17:907:97cf:b0:a8a:906d:b485 with SMTP id a640c23a62f3a-a9047cad53cmr717861166b.26.1726382466739; Sat, 14 Sep 2024 23:41:06 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:06 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 15/17] staging: rtl8723bs: Remove constant result macro is_primary_adapter Date: Sun, 15 Sep 2024 08:38:29 +0200 Message-ID: <72673acf8b0ada07530b0cb3705cde4cda5e752b.1726339782.git.philipp.g.hortmann@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove macro is_primary_adapter that returns always true to shorten code. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 3 +-- drivers/staging/rtl8723bs/core/rtw_mlme.c | 6 ++---- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 3 --- drivers/staging/rtl8723bs/hal/hal_com.c | 21 ++++++++----------- drivers/staging/rtl8723bs/hal/hal_intf.c | 20 +++++++----------- drivers/staging/rtl8723bs/include/drv_types.h | 1 - drivers/staging/rtl8723bs/os_dep/os_intfs.c | 3 +-- 7 files changed, 21 insertions(+), 36 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl= 8723bs/core/rtw_cmd.c index 84ce7307d8f3..a04c66a0e25e 100644 --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c @@ -1258,8 +1258,7 @@ static void dynamic_chk_wk_hdl(struct adapter *padapt= er) =20 =20 /* always call rtw_ps_processor() at last one. */ - if (is_primary_adapter(padapter)) - rtw_ps_processor(padapter); + rtw_ps_processor(padapter); } =20 void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type); diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rt= l8723bs/core/rtw_mlme.c index cbdb134278d3..5ded183aa08c 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -911,8 +911,7 @@ inline void rtw_indicate_scan_done(struct adapter *pada= pter, bool aborted) { rtw_os_indicate_scan_done(padapter, aborted); =20 - if (is_primary_adapter(padapter) && - (!adapter_to_pwrctl(padapter)->bInSuspend) && + if ((!adapter_to_pwrctl(padapter)->bInSuspend) && (!check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE|WIFI_UNDER_LINKING))) { rtw_set_ips_deny(padapter, 0); @@ -1589,8 +1588,7 @@ void rtw_dynamic_check_timer_handler(struct adapter *= adapter) } =20 } else { - if (is_primary_adapter(adapter)) - rtw_dynamic_chk_wk_cmd(adapter); + rtw_dynamic_chk_wk_cmd(adapter); } =20 /* auto site survey */ diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging= /rtl8723bs/core/rtw_pwrctrl.c index dbfcbac3d855..6ddd73b9cb29 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -73,9 +73,6 @@ int ips_leave(struct adapter *padapter) struct pwrctrl_priv *pwrpriv =3D adapter_to_pwrctl(padapter); int ret; =20 - if (!is_primary_adapter(padapter)) - return _SUCCESS; - mutex_lock(&pwrpriv->lock); ret =3D _ips_leave(padapter); mutex_unlock(&pwrpriv->lock); diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8= 723bs/hal/hal_com.c index 492889c837d9..54d5225564e4 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -13,23 +13,20 @@ =20 u8 rtw_hal_data_init(struct adapter *padapter) { - if (is_primary_adapter(padapter)) { /* if (padapter->isprimary) */ - padapter->hal_data_sz =3D sizeof(struct hal_com_data); - padapter->HalData =3D vzalloc(padapter->hal_data_sz); - if (!padapter->HalData) - return _FAIL; - } + padapter->hal_data_sz =3D sizeof(struct hal_com_data); + padapter->HalData =3D vzalloc(padapter->hal_data_sz); + if (!padapter->HalData) + return _FAIL; + return _SUCCESS; } =20 void rtw_hal_data_deinit(struct adapter *padapter) { - if (is_primary_adapter(padapter)) { /* if (padapter->isprimary) */ - if (padapter->HalData) { - vfree(padapter->HalData); - padapter->HalData =3D NULL; - padapter->hal_data_sz =3D 0; - } + if (padapter->HalData) { + vfree(padapter->HalData); + padapter->HalData =3D NULL; + padapter->hal_data_sz =3D 0; } } =20 diff --git a/drivers/staging/rtl8723bs/hal/hal_intf.c b/drivers/staging/rtl= 8723bs/hal/hal_intf.c index 0a3900548fd2..d675a5eeaddb 100644 --- a/drivers/staging/rtl8723bs/hal/hal_intf.c +++ b/drivers/staging/rtl8723bs/hal/hal_intf.c @@ -27,9 +27,8 @@ void rtw_hal_read_chip_version(struct adapter *padapter) =20 void rtw_hal_def_value_init(struct adapter *padapter) { - if (is_primary_adapter(padapter)) - if (padapter->HalFunc.init_default_value) - padapter->HalFunc.init_default_value(padapter); + if (padapter->HalFunc.init_default_value) + padapter->HalFunc.init_default_value(padapter); } =20 void rtw_hal_free_data(struct adapter *padapter) @@ -37,24 +36,21 @@ void rtw_hal_free_data(struct adapter *padapter) /* free HAL Data */ rtw_hal_data_deinit(padapter); =20 - if (is_primary_adapter(padapter)) - if (padapter->HalFunc.free_hal_data) - padapter->HalFunc.free_hal_data(padapter); + if (padapter->HalFunc.free_hal_data) + padapter->HalFunc.free_hal_data(padapter); } =20 void rtw_hal_dm_init(struct adapter *padapter) { - if (is_primary_adapter(padapter)) - if (padapter->HalFunc.dm_init) - padapter->HalFunc.dm_init(padapter); + if (padapter->HalFunc.dm_init) + padapter->HalFunc.dm_init(padapter); } =20 void rtw_hal_dm_deinit(struct adapter *padapter) { /* cancel dm timer */ - if (is_primary_adapter(padapter)) - if (padapter->HalFunc.dm_deinit) - padapter->HalFunc.dm_deinit(padapter); + if (padapter->HalFunc.dm_deinit) + padapter->HalFunc.dm_deinit(padapter); } =20 static void rtw_hal_init_opmode(struct adapter *padapter) diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/stagin= g/rtl8723bs/include/drv_types.h index 0094eed6c32d..2b12a2313707 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -182,7 +182,6 @@ struct registry_priv { =20 #include =20 -#define is_primary_adapter(adapter) (1) #define get_iface_type(adapter) (IFACE_PORT0) #define GET_PRIMARY_ADAPTER(padapter) (((struct adapter *)padapter)->dvobj= ->if1) #define GET_IFACE_NUMS(padapter) (((struct adapter *)padapter)->dvobj->ifa= ce_nums) diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/= rtl8723bs/os_dep/os_intfs.c index fc9b9c5efb50..aa608dee4464 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -633,8 +633,7 @@ void rtw_reset_drv_sw(struct adapter *padapter) struct pwrctrl_priv *pwrctrlpriv =3D adapter_to_pwrctl(padapter); =20 /* hal_priv */ - if (is_primary_adapter(padapter)) - rtw_hal_def_value_init(padapter); + rtw_hal_def_value_init(padapter); =20 RTW_ENABLE_FUNC(padapter, DF_RX_BIT); RTW_ENABLE_FUNC(padapter, DF_TX_BIT); --=20 2.43.0 From nobody Fri Nov 29 21:00:16 2024 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 2598A13A89B for ; Sun, 15 Sep 2024 06:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382471; cv=none; b=bRGSJpAgukx9ENGRy5U5NTcrYFmGSpH9owRwNRd0ffA7keOjPP7K1JmVWNfuVucaLBYyDwbRVao3NOo6w2szHbFVLhPie47i+CYVy7coOBZfxF7liNcYcleQiwD2Ke6W5jEWzMAMR8+stRf5X4FTcAYYnQPMzPSNAF5nTFeU0qY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382471; c=relaxed/simple; bh=QpT6Z8LG2nnF3VrkVUtoHOFioALPi1x81TYXKQYmhc4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AogheXJqnCXyPDrCBh2pPVJ92YxT9z/4F1tlGoTfjyGFXiNGfCwDM8ETgBG3f63ZCmdO5ZTtiDGoyZo1jyg1L8at+Jfea8RrgNkoD73ktzsDNy1k1vz/yRQ0MCZrLdUc8dDTo0b8B0VwLppUsRXr9zYNds8MSJ9thkDTaZE3d+Q= 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=gWDc2r/W; arc=none smtp.client-ip=209.85.208.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gWDc2r/W" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5c25554ec1eso4249321a12.1 for ; Sat, 14 Sep 2024 23:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382467; x=1726987267; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/90mJY5TiZ73bUY9rQirJjWNfRoCE6FwinjarxUBu4Q=; b=gWDc2r/WO64PsmOTTJDXNqDNJ5nUUJ7K4w0ovQrsWpwGTU7KswVqCI3wHcG1xksiGC FRu/jwfQzcubVhqLRbFX9pPmvGWjg2e1Ht2QiYy4x80f1UpJWIsvY6tQsSH1LiXj3vhP 7v7OdoNBJxkKrF1J7q7h5VXO9jkau63qoo6dJvG9mUt9qvdRTcT3oT1om+kegvs5Z8B5 t8zXOkTdiQaROLqXJnG++WBqUEyCykPm5yJ+dY/gr8Np+Cq5X8FDrfJjGlMQvSNRX2hB FzPTdT5hxcWcb6fCWNNB9xjmVLDb6TeizgEDSU+WJl777LA/0QmqTb2i/N2lbsJFWf7M PnwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382467; x=1726987267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/90mJY5TiZ73bUY9rQirJjWNfRoCE6FwinjarxUBu4Q=; b=eq7i1OFLVwsZL/39/ZVvr6I3fIwMfryuCA80KqyT+k2y+6uzFCF1ZnGtvf75gSA+zV SGGZvMrrDmq1X90LX37KxzOaYmgRXV8tTrREAwvC3Mu1i/5oKW2/UJk7gUrLwK4jY4eK LDUiDYeixS99LtVknqMGwJArkVDgMTHrwCjaeDM/NVorVVtlVHOeIlwjapqvHoYMRnCD /Bt22XGxz0FE9qbftSv6HgVPqCK8wdJ/t6DdeU5SnebLmzeE3Kodo+PankeOK3EedV63 8p2Va/WKN+v32BrQAqdes0oLB7pgLY33CpVBnoSm94VLIPNhBlHdUTrQx1NCEfoJpErK oe4Q== X-Forwarded-Encrypted: i=1; AJvYcCUDCRsSQ8boOMUBpiaHD5QpQzwQ+mbhkzQHUIzz3hYGr1iGLBMPfI+OZnvfPmlnDgcwU+E52UA8oSaW9uc=@vger.kernel.org X-Gm-Message-State: AOJu0YweOmaQa4SFbKuXLc1cBnhpEJYfI+SUGfRU4os+NMjCnnzmdbFy +9q0vzoGPdfitCrARQ7O7r/XJK5IkYMUrgjkyoyoAkJnMsZ8HsQl X-Google-Smtp-Source: AGHT+IE7qy7IyLD8O8OlyKzAvBJ0r/MYWALYgMTCMFrbVAK7sVLqv7zVLKEWVr8PbnKrt1d2U/lWaQ== X-Received: by 2002:a17:907:e2db:b0:a90:13b6:3ece with SMTP id a640c23a62f3a-a90294337cdmr1196603366b.15.1726382467335; Sat, 14 Sep 2024 23:41:07 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:07 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 16/17] staging: rtl8723bs: Remove constant result macro get_iface_type Date: Sun, 15 Sep 2024 08:38:30 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove macro get_iface_type that returns always false to shorten code. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 3 +-- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ---- drivers/staging/rtl8723bs/include/drv_types.h | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/stagin= g/rtl8723bs/core/rtw_mlme_ext.c index bbdd5fce28a1..a6383f615686 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -4872,8 +4872,7 @@ void mlmeext_joinbss_event_callback(struct adapter *p= adapter, int join_res) /* set_link_timer(pmlmeext, DISCONNECT_TO); */ } =20 - if (get_iface_type(padapter) =3D=3D IFACE_PORT0) - rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_CONNECT, 0); + rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_CONNECT, 0); } =20 /* currently only adhoc mode will go here */ diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging= /rtl8723bs/core/rtw_pwrctrl.c index 6ddd73b9cb29..c60e179bb2e1 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -452,10 +452,6 @@ void LPS_Enter(struct adapter *padapter, const char *m= sg) if (n_assoc_iface !=3D 1) return; =20 - /* Skip lps enter request for adapter not port0 */ - if (get_iface_type(padapter) !=3D IFACE_PORT0) - return; - if (!PS_RDY_CHECK(dvobj->padapters)) return; =20 diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/stagin= g/rtl8723bs/include/drv_types.h index 2b12a2313707..57cbe2876838 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -182,7 +182,6 @@ struct registry_priv { =20 #include =20 -#define get_iface_type(adapter) (IFACE_PORT0) #define GET_PRIMARY_ADAPTER(padapter) (((struct adapter *)padapter)->dvobj= ->if1) #define GET_IFACE_NUMS(padapter) (((struct adapter *)padapter)->dvobj->ifa= ce_nums) #define GET_ADAPTER(padapter, iface_id) (((struct adapter *)padapter)->dvo= bj->padapters[iface_id]) --=20 2.43.0 From nobody Fri Nov 29 21:00:16 2024 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.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 0172713BC18 for ; Sun, 15 Sep 2024 06:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382471; cv=none; b=W/9ipel+JrbC3dKCP+BfGhDLFHPWUkbDG88Tza3VnMNhWGsB9C8ER97l2sca3LlNU4tHmwhO+BrPvVDuzBMp5w0Cp71j0ag/DfGBNARZn6HXZRzfy00ZP506rJ/X+tMKd1yJpT8cVU0MjpWG7O+oRZHMEzu9c7D16AttwMHPcJg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726382471; c=relaxed/simple; bh=WoL/PTd1sRmgeYcsxwtLPZRRotqfs0ky1+jf+8qcOes=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OHHm+VIrO/c5I3+M/7WMCfjhuemz1FCvXVzAHjAAF+ThE9PyQC2JzAVkv4K1MNB9+sIO2Lc+XpE5/ka6d54IyWJlqcDRe+u5QyASrLRi1cgxWrdo3Fyv8cBMZhgd+Fug8IUsqKKjF8cWV8Uz9GwdWh/JFCxdXhq9N9ZXIdsLoL4= 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=mmbLOJ4i; arc=none smtp.client-ip=209.85.218.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mmbLOJ4i" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a8d446adf6eso310158066b.2 for ; Sat, 14 Sep 2024 23:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726382468; x=1726987268; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uQBeiDljOfj9wIe8fH/XKSTxxaoSaepwKmK4x/egpJI=; b=mmbLOJ4iPw1DWI6Qxe9VHc3aj+4vxj1BOXzcMlFp3BWaYg7c0F+Urj92UZ1Sd6dxcp 8Vw1JWbVVroOLmHR9IO29syThNvZZhA6Unjg113pne0ppdzsb5+HXIrjavmdbRM7DChx eOsmvTcHUhSXhFLwXhCUBOD9D4hkxAPtohdk/JafAMce3ng0Fko11OGgne75bM7ojNP4 W08M5y3MBS7wrOccAXCMU+MGV9u9Gv7KXCs082DSrUn1As5i4bg17iQGj9AIgfDI/6Pf Z4f/kH8y4hxyzY19R4HLqS+FWx3ZVlQZq08IYYonWbNrbNiHj+XcEgAvO8a655l/+RJ3 49RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726382468; x=1726987268; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uQBeiDljOfj9wIe8fH/XKSTxxaoSaepwKmK4x/egpJI=; b=agaYoakybHRTGEXpGZ2cA0Qj1OOKsOqtRAwfz1VLw5T492G2DW0rzZUQ+JikndrS7I HQc8WEdjLlOu+Jc3+SLeaVIQC+Wjl2FpQdUveljjDlqUS4NHGH24OQLqDa/KayPvN69O B99CEOa66j8VLHaSQ1wBLdIAhvymzrH1C0IpmhY/HbqRE3JXYD1OwCULyLmSqi7p5Fps tlfG4mdTwUFoESvLGmkb8DCD4rOF05eIZSLPZUx80GjrOWrntJRsGNNRoGr3zCoa5I0M FkBrlBNQcrJ9AQCt443Jq40VgvEFVFSz5e2KypnVBpb8rxeJnqIgz07GSKSw/1IKDCN0 cyEQ== X-Forwarded-Encrypted: i=1; AJvYcCXMa6voZvLcKukXMFpKhp4w60H3KLuDa3h1bfdFSnqvTj0txkCk3BEO6Om/uKFVNCFtcZGyhvixW3Yfj8s=@vger.kernel.org X-Gm-Message-State: AOJu0YyIY7jLBH5BeY2zz6sZCcRVtitlFi8Il6Okg22T9suu6GVImML2 MKnVH2KPErKaX0ycwxk8F76orJuZ8P173+yXJDcoQrkbiqj1EGYK7FvRgw== X-Google-Smtp-Source: AGHT+IHEW0BPRmyOtAGPFQJLkfiSx58u2eQXPrBHSTGxIdINUbHXVmZv+gSeir/SJ9RNNwmb9aTl6A== X-Received: by 2002:a17:907:3d8e:b0:a86:ac05:2112 with SMTP id a640c23a62f3a-a9048041b67mr801205866b.51.1726382468200; Sat, 14 Sep 2024 23:41:08 -0700 (PDT) Received: from kernel-710.speedport.ip (p57ba2f9b.dip0.t-ipconnect.de. [87.186.47.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610967bbsm160201066b.8.2024.09.14.23.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 23:41:07 -0700 (PDT) From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Philipp Hortmann Subject: [PATCH 17/17] staging: rtl8723bs: Remove unused enum with first entry IFACE_PORT0 Date: Sun, 15 Sep 2024 08:38:31 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused enum with first entry IFACE_PORT0. Signed-off-by: Philipp Hortmann Reviewed-by: Dan Carpenter --- drivers/staging/rtl8723bs/include/drv_types.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/stagin= g/rtl8723bs/include/drv_types.h index 57cbe2876838..7b0e824e05a9 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -318,12 +318,6 @@ static inline struct device *dvobj_to_dev(struct dvobj= _priv *dvobj) return &dvobj->intf_data.func->dev; } =20 -enum { - IFACE_PORT0, /* mapping to port0 for C/D series chips */ - IFACE_PORT1, /* mapping to port1 for C/D series chip */ - MAX_IFACE_PORT, -}; - enum { DRIVER_NORMAL =3D 0, DRIVER_DISAPPEAR =3D 1, --=20 2.43.0