From nobody Fri Nov 29 22:57:17 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 --- .../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