Skip to contentSkip to conversation

platform/x86: asus-wmi: Join string literals back

PATCH In review Andy Shevchenko 2 participants 7 messages Dec 10, 2021 – Dec 21, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 platform/x86: asus-wmi: Join string literals back

For easy grepping on debug purposes join string literals back in the messages.

No functional change.

---
 drivers/platform/x86/asus-wmi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/platform/x86/asus-wmi.c +2 -4
index 6fa4b0be8e76..30e0de9e0d81 100644
@@ -1154,12 +1154,10 @@ static void asus_rfkill_hotplug(struct asus_wmi *asus)
 		absent = (l == 0xffffffff);
 
 		if (blocked != absent) {
-			pr_warn("BIOS says wireless lan is %s, "
-				"but the pci device is %s\n",
+			pr_warn("BIOS says wireless lan is %s, but the pci device is %s\n",
 				blocked ? "blocked" : "unblocked",
 				absent ? "absent" : "present");
-			pr_warn("skipped wireless hotplug as probably "
-				"inappropriate for this model\n");
+			pr_warn("skipped wireless hotplug as probably inappropriate for this model\n");
 			goto out_unlock;
 		}
 
Signature · 1 line
2.33.0
#1 lore raw

PATCH 2/3 platform/x86: asus-wmi: Split MODULE_AUTHOR() on per author basis

There are as many as needed MODULE_AUTHOR() macro entries allowed in the single driver. Split author list to a few macro entries.

---
 drivers/platform/x86/asus-wmi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/asus-wmi.c +2 -2
index 30e0de9e0d81..c3e0394aa5f0 100644
@@ -43,8 +43,8 @@
 
 #include "asus-wmi.h"
 
-MODULE_AUTHOR("Corentin Chary <[email protected]>, "
-	      "Yong Wang <[email protected]>");
+MODULE_AUTHOR("Corentin Chary <[email protected]>");
+MODULE_AUTHOR("Yong Wang <[email protected]>");
 MODULE_DESCRIPTION("Asus Generic WMI Driver");
 MODULE_LICENSE("GPL");
 
Signature · 1 line
2.33.0
#2 lore raw

PATCH 3/3 platform/x86: asus-wmi: Reshuffle headers for better maintenance

In reply to Andy Shevchenko

Reshuffle headers in alphabetical order for better maintenance.

---
 drivers/platform/x86/asus-wmi.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/platform/x86/asus-wmi.c +14 -14
index c3e0394aa5f0..a3b83b22a3b1 100644
@@ -13,29 +13,29 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/acpi.h>
+#include <linux/backlight.h>
+#include <linux/debugfs.h>
+#include <linux/dmi.h>
+#include <linux/fb.h>
+#include <linux/hwmon.h>
+#include <linux/hwmon-sysfs.h>
 #include <linux/init.h>
-#include <linux/types.h>
-#include <linux/slab.h>
 #include <linux/input.h>
 #include <linux/input/sparse-keymap.h>
-#include <linux/fb.h>
-#include <linux/backlight.h>
+#include <linux/kernel.h>
 #include <linux/leds.h>
-#include <linux/rfkill.h>
+#include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/pci_hotplug.h>
+#include <linux/platform_data/x86/asus-wmi.h>
+#include <linux/platform_device.h>
 #include <linux/platform_profile.h>
 #include <linux/power_supply.h>
-#include <linux/hwmon.h>
-#include <linux/hwmon-sysfs.h>
-#include <linux/debugfs.h>
+#include <linux/rfkill.h>
 #include <linux/seq_file.h>
-#include <linux/platform_data/x86/asus-wmi.h>
-#include <linux/platform_device.h>
-#include <linux/acpi.h>
-#include <linux/dmi.h>
+#include <linux/slab.h>
+#include <linux/types.h>
 #include <linux/units.h>
 
 #include <acpi/battery.h>
Signature · 1 line
2.33.0
#3 lore raw
In reply to Andy Shevchenko
Quoted 4 lines · Andy Shevchenko

For easy grepping on debug purposes join string literals back in the messages.

No functional change.

Hans, any comments on the series?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw

Hi,

Quoted 7 lines · Andy Shevchenko
Quoted 4 lines · Andy Shevchenko

For easy grepping on debug purposes join string literals back in the messages.

No functional change.

Hans, any comments on the series?

No comments, the series looks good to me. I plan to another round of merging pdx86 patches tomorrow and then I plan to pick these up too.

Regards,

Hans

#5 lore raw
Quoted 11 lines · Hans de Goede
Quoted 7 lines · Andy Shevchenko
Quoted 4 lines · Andy Shevchenko

For easy grepping on debug purposes join string literals back in the messages.

No functional change.

Hans, any comments on the series?

No comments, the series looks good to me. I plan to another round of merging pdx86 patches tomorrow and then I plan to pick these up too.

Thanks for good news!

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#6 lore raw
In reply to Andy Shevchenko

Hi,

Quoted 6 lines · Andy Shevchenko

For easy grepping on debug purposes join string literals back in the messages.

No functional change.

Thank you for your patch-series, I've applied the series to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.

Regards,

Hans

Quoted 24 lines
---
 drivers/platform/x86/asus-wmi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/platform/x86/asus-wmi.c +2 -4
index 6fa4b0be8e76..30e0de9e0d81 100644
@@ -1154,12 +1154,10 @@ static void asus_rfkill_hotplug(struct asus_wmi *asus)
 		absent = (l == 0xffffffff);
 
 		if (blocked != absent) {
-			pr_warn("BIOS says wireless lan is %s, "
-				"but the pci device is %s\n",
+			pr_warn("BIOS says wireless lan is %s, but the pci device is %s\n",
 				blocked ? "blocked" : "unblocked",
 				absent ? "absent" : "present");
-			pr_warn("skipped wireless hotplug as probably "
-				"inappropriate for this model\n");
+			pr_warn("skipped wireless hotplug as probably inappropriate for this model\n");
 			goto out_unlock;
 		}