From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 D2EC557CD for ; Sun, 20 Feb 2022 10:02:23 +0000 (UTC) Received: by mail-ej1-f51.google.com with SMTP id lw4so25585686ejb.12 for ; Sun, 20 Feb 2022 02:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eOF+6ocqxTqypgBTBzKCjDrqeVxrdZjcFH/y4rV+6HA=; b=jWVjxzOvrWx/nCcXQkfKa5ZYV0BhFa/OpARjipv5jeeUMj2V+BCu3bMb1Br8u4KoBp Rj5oGwE5dYbbtfqhrepm6IBbc/gsCitFbCX8W7TPStDKoZTvO7qV0foEweN8IbQ75hF8 DR2uuUkWPnn5X2zDLSsseuNEzzLwCGC3y8qEN/RudodAZ11ySQZ+lASKqzFUBMxmJ6r+ 2uH4DTVj5JlmKbcHP77fN6OSET+W2UkJMLGZcgQIhudeyFTJkUHkk9+e7MNVr8vP+xSa zPiYIZIl0/hDa8feObC9Pgib0KPIJ7VQYsHfFOmv8o5uGCFIaLPUNjQ18ZUvX20lApRo ztvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eOF+6ocqxTqypgBTBzKCjDrqeVxrdZjcFH/y4rV+6HA=; b=g1zAYQrVcIxV4Bu8q2jGlGbZELDttsvDECp4iaa7hFAJDTXpmgjPoi8nPQoho0pgFu HO2ucUJVqs13zDmf86BJT3bHUypkKxK2scShi3C4bEIhyrt4qgb42ZOEH8U8xvZebxGM arUCwL2xu3QP3xee8cqMd18iClmDqeC3bOdFIK9UqxzwULKLmi/RWbIyH2AhRe/IXYZU p4jUji83Ebd53NZUM+47elgDUakGDyUTK8VJ8J+WTeJ3vow8XIaA1WXd6AdSRnVekC7v FaEiXQXJV5pbTGGZJe3wlLBrMaO/JQO/2PuLT6xPtdNXG7RAH8PDLyKggh+4YK2N7UgQ x8zg== X-Gm-Message-State: AOAM531If+hDIogy4RontHobGEmUR518eIv+RNVenw0uv51ugUlIPFWo f9To5n0z6NXQs/91ryuZNQE= X-Google-Smtp-Source: ABdhPJzTNKLUK1Pj6FLjvvc8LuILPzRu9yu4COr58vWn7XHhfmKipJuWAeT5U6DwjS2tTHE+w7n+BA== X-Received: by 2002:a17:907:7845:b0:6cd:f2f4:cf00 with SMTP id lb5-20020a170907784500b006cdf2f4cf00mr12102761ejc.388.1645351342191; Sun, 20 Feb 2022 02:02:22 -0800 (PST) Received: from localhost.localdomain (ip5f5abb8f.dynamic.kabel-deutschland.de. [95.90.187.143]) by smtp.gmail.com with ESMTPSA id dx7sm3265223ejb.23.2022.02.20.02.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 02:02:21 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 4/5] staging: r8188eu: convert type of pBandWidth in odm_dm_struct Date: Sun, 20 Feb 2022 11:02:11 +0100 Message-Id: <20220220100212.7466-5-straube.linux@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220220100212.7466-1-straube.linux@gmail.com> References: <20220220100212.7466-1-straube.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The variable pBandWidth in odm_dm_struct stores constants from enum ht_channel_width. Change the type of pBandWidth from u8 pointer to enum ht_channel_width pointer to get rid of a type cast in function Update_ODM_ComInfo_88E(). Signed-off-by: Michael Straube --- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 2 +- drivers/staging/r8188eu/include/odm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_dm.c b/drivers/staging/r8188eu/hal/rtl8188e_dm.c index 082104c9b2e8..df0b412c52eb 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_dm.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_dm.c @@ -40,7 +40,7 @@ static void Update_ODM_ComInfo_88E(struct adapter *Adapter) dm_odm->pWirelessMode = &pmlmeext->cur_wireless_mode; dm_odm->pSecChOffset = &hal_data->nCur40MhzPrimeSC; - dm_odm->pBandWidth = (u8 *)&hal_data->CurrentChannelBW; + dm_odm->pBandWidth = &hal_data->CurrentChannelBW; dm_odm->pChannel = &hal_data->CurrentChannel; dm_odm->pbScanInProcess = &pmlmepriv->bScanInProcess; dm_odm->pbPowerSaving = &pwrctrlpriv->bpower_saving; diff --git a/drivers/staging/r8188eu/include/odm.h b/drivers/staging/r8188eu/include/odm.h index fed12203c558..7a10f57b9bd3 100644 --- a/drivers/staging/r8188eu/include/odm.h +++ b/drivers/staging/r8188eu/include/odm.h @@ -324,7 +324,7 @@ struct odm_dm_struct { /* Secondary channel offset don't_care/below/above = 0/1/2 */ u8 *pSecChOffset; /* BW info 20M/40M/80M = 0/1/2 */ - u8 *pBandWidth; + enum ht_channel_width *pBandWidth; /* Central channel location Ch1/Ch2/.... */ u8 *pChannel; /* central channel number */ -- 2.35.1