staging: r8188eu: convert pr_info_once call in core/rtw_fw.c
authorPhillip Potter <phil@philpotter.co.uk>
Fri, 20 May 2022 22:09:53 +0000 (23:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 05:43:48 +0000 (07:43 +0200)
Convert pr_info_once call in core/rtw_fw.c to a dev_info_once call, as
ultimately, this results in the printing of the driver name anyway
(r8188eu) which is equally clear and removes the need for the "R8188EU: "
part of the format string.

Suggested-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20220520220953.11840-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_fw.c

index 0451e51..87dc0e9 100644 (file)
@@ -259,9 +259,9 @@ int rtl8188e_firmware_download(struct adapter *padapter)
        fwhdr = (struct rt_firmware_hdr *)dvobj->firmware.data;
 
        if (IS_FW_HEADER_EXIST(fwhdr)) {
-               pr_info_once("R8188EU: Firmware Version %d, SubVersion %d, Signature 0x%x\n",
-                            le16_to_cpu(fwhdr->version), fwhdr->subversion,
-                            le16_to_cpu(fwhdr->signature));
+               dev_info_once(device, "Firmware Version %d, SubVersion %d, Signature 0x%x\n",
+                             le16_to_cpu(fwhdr->version), fwhdr->subversion,
+                             le16_to_cpu(fwhdr->signature));
 
                fw_data = fw_data + sizeof(struct rt_firmware_hdr);
                fw_size = fw_size - sizeof(struct rt_firmware_hdr);