Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp187739rwj; Sat, 17 Dec 2022 06:18:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4B5yUO1/XQlqqmS823KsEcVJZQKww+Pi6vegRIFMTuAygWkgbH/EM1HCwlv0QShFo1SON5 X-Received: by 2002:a17:906:2506:b0:7af:1139:de77 with SMTP id i6-20020a170906250600b007af1139de77mr32619405ejb.4.1671286719940; Sat, 17 Dec 2022 06:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671286719; cv=none; d=google.com; s=arc-20160816; b=nXpTgskVk/tOP5cyKYOVLQ050MU+sZ6NPgJfsPkAlLgW2w9XWy9W2ng0KhWOtyTf8W sa+Kcf4hrA40kBknFUy04rNwKLM18f3k0pw9V14fFWFnIx8C59E8YV+qWARqKpevcrGl zIMRkh+X7J/WSB79zphuMsKjK2M5Ct+09N0+M8IMIoOGruQniKjuKOlMtjkOyEE9XUfW N0xPTZWelUrvlwZ7WQAx2gEp/1Qituih6WX7MVOLuFeIfDPUoUENOWDy/Fts2oVeMiz9 u8Dn+WbQd1jps64skwuzSLpIvircpZhYFBQTE/4atTH/coECnLr5AGyk4joSTTMHkhRO iPDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=1Y9FHoNwcDPV8AMOOlEJy2lDdr8m8MESsLDV+1GBLU0=; b=vgMRBEcIky0HPYkjaXo4ntTIldxYZtrI3BiQZKgtw6wTY+5JaqQfFS3jjt76ulcqrJ YqnMxCQDKsbZCyVCM3QRcQpZUv7uSczVtlmh28Cu4qzz9Jit6ZWZtErpEZr9nGeCkah9 3fE9DoNYLnC8twjyhCANXI9zG/bA1DjKVU7q67TW89imfHNWiu/pYcGnIijr0DSqT9R0 r0/Ya/rJufc2Jjx78VrtS3IKtFx1PhyI9anYGtAnhAcTJzmjxkWx6Djuo02K40lRisGg TTMGOxvX4fN9WDwGlIRqt8+NP/Z/frKp/6HATV049uj0cgb5qdbZGzL8gpmNTtFF81Ps Hzkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c3HX2Run; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds22-20020a170907725600b007c1b8be3723si6327121ejc.197.2022.12.17.06.18.17; Sat, 17 Dec 2022 06:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c3HX2Run; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbiLQONx (ORCPT + 66 others); Sat, 17 Dec 2022 09:13:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbiLQONv (ORCPT ); Sat, 17 Dec 2022 09:13:51 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1550F13F2F for ; Sat, 17 Dec 2022 06:13:50 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id t17so12340393eju.1 for ; Sat, 17 Dec 2022 06:13:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1Y9FHoNwcDPV8AMOOlEJy2lDdr8m8MESsLDV+1GBLU0=; b=c3HX2RunNKKddKsnkwRotggGzmftm2m/4VL0flWr0WUdf5qImZnJxxKYG90M66Kw/W yyjbQFpvdZ46PX+0r++2DnoQme+u7fulELWbZQ5je5cXRazXwy3Ee6d6g1Okv7khDvhx IIQDIuyqnWlzrwtBekEO2i2bbhhoPvJRQwK6b+OqIDK+fQSyEgHvDPjV5V+IB1x7OZt+ FGg4DJxYq4d3IuuA6NDCurlMetlgw05esHs1AIzlEoPMVAcGPQ+L/fWT93ta3LY3gERQ 3DvAHx0bwXPkhdQY4259QtYYFbVsxppCPUFmh5PX2B71Th/MBUECm3hGlShS6fwfnK2n YyUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1Y9FHoNwcDPV8AMOOlEJy2lDdr8m8MESsLDV+1GBLU0=; b=OncK/wsaBRkcDGeoIxFcLWA8B2mrI3cADJbPlQtc3SQisgPi8+loJxp4Y7BwI+Jv0Y /zyeJdLiFuid8ofSQ3/+TMzRmDJ+mubOsBxuLI9uynROCnyYDxZDj4kAAkGWxHLrXbUX yaFwWmOiY/EDziiQB64mgJoG+ohi688SaX1NSPuaOiv7bfFtVrPzpJ3oQFDtuEYpJAwG BQZwfPL7ggyBQ9E5yY/8yAEPqXzxeO0hPqqL9cu1exrby8hvUE9aOjA8U3HO5U4WIv2p LTQ7X9jbk/nkcDaaLiV4AUElbpvE4KKE6lJpB3giBoiIKEdmf+EhPJzEqr7hZo4/1AC2 e3Ww== X-Gm-Message-State: ANoB5plGVWbRi3Tz3uTFyOZzCX/OKu3lZba5ENdLgBQSi79ohBNgj6++ 75e1PMai0K010VS44K8oh00hReMbp78= X-Received: by 2002:a17:906:c088:b0:7c4:a773:4d72 with SMTP id f8-20020a170906c08800b007c4a7734d72mr17823165ejz.64.1671286428727; Sat, 17 Dec 2022 06:13:48 -0800 (PST) Received: from [192.168.1.50] ([79.119.240.153]) by smtp.gmail.com with ESMTPSA id lx5-20020a170906af0500b007af75e6b6fesm2075094ejb.147.2022.12.17.06.13.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Dec 2022 06:13:48 -0800 (PST) Message-ID: <361ceac1-cc73-605b-4b63-736bfce80833@gmail.com> Date: Sat, 17 Dec 2022 16:13:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: [PATCH v3 2/5] wifi: rtl8xxxu: Make rtl8xxxu_load_firmware take const char* Content-Language: en-US From: Bitterblue Smith To: "linux-wireless@vger.kernel.org" Cc: Jes Sorensen , Ping-Ke Shih , Andrea Merello , Taehee Yoo References: <2aa5200a-ee42-e064-16a1-672bed5708c6@gmail.com> In-Reply-To: <2aa5200a-ee42-e064-16a1-672bed5708c6@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org And pass const char* to it. Signed-off-by: Bitterblue Smith --- v3: - No change. v2: - Patch is new in v2. --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h index d26df4095da0..87758295d618 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h @@ -1560,7 +1560,7 @@ int rtl8xxxu_init_phy_rf(struct rtl8xxxu_priv *priv, enum rtl8xxxu_rfpath path); int rtl8xxxu_init_phy_regs(struct rtl8xxxu_priv *priv, const struct rtl8xxxu_reg32val *array); -int rtl8xxxu_load_firmware(struct rtl8xxxu_priv *priv, char *fw_name); +int rtl8xxxu_load_firmware(struct rtl8xxxu_priv *priv, const char *fw_name); void rtl8xxxu_firmware_self_reset(struct rtl8xxxu_priv *priv); void rtl8xxxu_power_off(struct rtl8xxxu_priv *priv); void rtl8xxxu_identify_vendor_1bit(struct rtl8xxxu_priv *priv, u32 vendor); diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c index ba28a4c00d3b..94fc4647075a 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c @@ -742,7 +742,7 @@ static int rtl8188fu_parse_efuse(struct rtl8xxxu_priv *priv) static int rtl8188fu_load_firmware(struct rtl8xxxu_priv *priv) { - char *fw_name; + const char *fw_name; int ret; fw_name = "rtlwifi/rtl8188fufw.bin"; diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c index d43f8afeb876..8981a86c833f 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c @@ -386,7 +386,7 @@ static int rtl8192cu_identify_chip(struct rtl8xxxu_priv *priv) static int rtl8192cu_load_firmware(struct rtl8xxxu_priv *priv) { - char *fw_name; + const char *fw_name; int ret; if (!priv->vendor_umc) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c index 91f018f6fca0..c769d0eaa03c 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c @@ -709,7 +709,7 @@ static int rtl8192eu_parse_efuse(struct rtl8xxxu_priv *priv) static int rtl8192eu_load_firmware(struct rtl8xxxu_priv *priv) { - char *fw_name; + const char *fw_name; int ret; fw_name = "rtlwifi/rtl8192eu_nic.bin"; diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c index 707ac48ecc83..e881ee33c6e8 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c @@ -231,7 +231,7 @@ static int rtl8723au_parse_efuse(struct rtl8xxxu_priv *priv) static int rtl8723au_load_firmware(struct rtl8xxxu_priv *priv) { - char *fw_name; + const char *fw_name; int ret; switch (priv->chip_cut) { diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c index b26737447035..65ebf9dcf5f9 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c @@ -502,7 +502,7 @@ static int rtl8723bu_parse_efuse(struct rtl8xxxu_priv *priv) static int rtl8723bu_load_firmware(struct rtl8xxxu_priv *priv) { - char *fw_name; + const char *fw_name; int ret; if (priv->enable_bluetooth) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 7f2adb1a9c70..7aa00442c3a5 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -1980,7 +1980,7 @@ static int rtl8xxxu_download_firmware(struct rtl8xxxu_priv *priv) return ret; } -int rtl8xxxu_load_firmware(struct rtl8xxxu_priv *priv, char *fw_name) +int rtl8xxxu_load_firmware(struct rtl8xxxu_priv *priv, const char *fw_name) { struct device *dev = &priv->udev->dev; const struct firmware *fw; -- 2.38.0