From patchwork Mon Nov 2 11:24:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11873551 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A5CBC4742C for ; Mon, 2 Nov 2020 11:26:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC107207C3 for ; Mon, 2 Nov 2020 11:26:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r5dRwCOB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbgKBLZz (ORCPT ); Mon, 2 Nov 2020 06:25:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728877AbgKBLZJ (ORCPT ); Mon, 2 Nov 2020 06:25:09 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08781C061A4E for ; Mon, 2 Nov 2020 03:25:07 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id h22so9152260wmb.0 for ; Mon, 02 Nov 2020 03:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LpWKESLTGBe7YeMGrN5FmJYCFJcGpFNookfaDX/IDGg=; b=r5dRwCOBEnNkEhSvcu8ebuTtLZMpAlfj59ZOipi6qoNBtJVyZFxR/ENjeGQ7/AcNso cqOfRNxCPcTLrEYICbEKEu1tydiDfltsD/8KVFTImadOsSiZqCbZmEKrKyE6koP3ttbO 0SHnXVSM/w+uWw11b9MM5F4CtPo/MirlBPwz7VCzzrtBkxS5js9Z2k5TFRcwhD5Dwza2 FeVKfh8hLHloz3hOKbA5m7Sp/Pj8qsWYVD9NFrWSC8ousDTAwYhIV0OXx9QqYTchAsxZ qnsEq8fgZrn8ElXazGnLAaVRbnI+UOgpNPqS6xWE/ermyTsylsJ0TlRi2kSvC/lrfLEh 9EWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LpWKESLTGBe7YeMGrN5FmJYCFJcGpFNookfaDX/IDGg=; b=MFpNab1UxuA9NWseEb7EfRcZAJOBmOrnMrNtY25m38gRUWEbs16d0Y/NKQZOrIAVpK 5HxE6viR1/+kec5n5RttqaOAlXsRYfg7N7Uxp9j8Vlw5ZqjXCdCmOq0kbuDFi6TMRikx N14RNnxiSC/k9izZqKjQwFDaBNZmvfOyTzcryuQGKhRkhTsAYmj0vhySal6YfoBNxzFQ rUKTx801O7JU/Bc71N0vC3ZnFDJdBMgT8teEqg1Bl1sUVG8o3ZbqZh8Y3qHFcjpFhMvX 3vBpwoXk/RTR+MrSCjT8OkvwenzG+//hBWN2nHdFfUlaHFagMwbsoYyYLXgEoLu/0qeL 9Pfg== X-Gm-Message-State: AOAM530RXLvGWRvztOyYuAQdQQglUYr2+cks6LjIenmNoD19trSl3wIw jrYrSZY303cW4jPQ437lSll9nw== X-Google-Smtp-Source: ABdhPJyyfs4HJbOnKkn7LRYpmCrrd1Eh+uguAsVZJ8Pk+IFH4jzNRMFjuc3acSYojh6656kuXXXSLA== X-Received: by 2002:a1c:2901:: with SMTP id p1mr17665790wmp.170.1604316305760; Mon, 02 Nov 2020 03:25:05 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id m14sm21867354wro.43.2020.11.02.03.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:25:05 -0800 (PST) From: Lee Jones To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Yan-Hsuan Chuang , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 36/41] rtw8822b: Return type is not const Date: Mon, 2 Nov 2020 11:24:05 +0000 Message-Id: <20201102112410.1049272-37-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102112410.1049272-1-lee.jones@linaro.org> References: <20201102112410.1049272-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] Cc: Yan-Hsuan Chuang Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c index 22d0dd640ac94..b420eb9148796 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c @@ -87,7 +87,7 @@ static const u32 rtw8822b_txscale_tbl[RTW_TXSCALE_SIZE] = { 0x2d3, 0x2fe, 0x32b, 0x35c, 0x38e, 0x3c4, 0x3fe }; -static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev) +static u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev) { u8 i = 0; u32 swing, table_value;