mirror of
https://github.com/torvalds/linux.git
synced 2024-12-07 19:41:31 +00:00
wifi: rtl8xxxu: Make rtl8xxxu_load_firmware take const char*
And pass const char* to it. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/361ceac1-cc73-605b-4b63-736bfce80833@gmail.com
This commit is contained in:
parent
4f198e720e
commit
d7a3705c96
@ -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);
|
||||
|
@ -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";
|
||||
|
@ -386,7 +386,7 @@ out:
|
||||
|
||||
static int rtl8192cu_load_firmware(struct rtl8xxxu_priv *priv)
|
||||
{
|
||||
char *fw_name;
|
||||
const char *fw_name;
|
||||
int ret;
|
||||
|
||||
if (!priv->vendor_umc)
|
||||
|
@ -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";
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
|
@ -1980,7 +1980,7 @@ fw_abort:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user