* [PATCH v2] platform/x86: dell-ddv: Minor style fixes
@ 2022-09-28 22:15 Armin Wolf
2022-09-29 9:54 ` Andy Shevchenko
2022-10-24 13:47 ` Hans de Goede
0 siblings, 2 replies; 3+ messages in thread
From: Armin Wolf @ 2022-09-28 22:15 UTC (permalink / raw)
To: hdegoede, markgross
Cc: andriy.shevchenko, rafael, lenb, hmh, matan, corentin.chary,
jeremy, productdev, mario.limonciello, pobrn, coproscefalo,
platform-driver-x86, linux-acpi, linux-kernel
Fix some style issues found during review to improve
code maintainability, no functional changes.
Tested on a Dell Inspiron 3505.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
Changes in v2:
- change commit message
---
drivers/platform/x86/dell/dell-wmi-ddv.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/platform/x86/dell/dell-wmi-ddv.c b/drivers/platform/x86/dell/dell-wmi-ddv.c
index 6ccce90f475d..699feae3c435 100644
--- a/drivers/platform/x86/dell/dell-wmi-ddv.c
+++ b/drivers/platform/x86/dell/dell-wmi-ddv.c
@@ -1,13 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * dell-wmi-ddv.c -- Linux driver for WMI sensor information on Dell notebooks.
+ * Linux driver for WMI sensor information on Dell notebooks.
*
* Copyright (C) 2022 Armin Wolf <W_Armin@gmx.de>
*/
#define pr_format(fmt) KBUILD_MODNAME ": " fmt
-#include <acpi/battery.h>
#include <linux/acpi.h>
#include <linux/debugfs.h>
#include <linux/device.h>
@@ -21,6 +20,8 @@
#include <linux/sysfs.h>
#include <linux/wmi.h>
+#include <acpi/battery.h>
+
#define DRIVER_NAME "dell-wmi-ddv"
#define DELL_DDV_SUPPORTED_INTERFACE 2
@@ -52,7 +53,8 @@ enum dell_ddv_method {
struct dell_wmi_ddv_data {
struct acpi_battery_hook hook;
- struct device_attribute temp_attr, eppid_attr;
+ struct device_attribute temp_attr;
+ struct device_attribute eppid_attr;
struct wmi_device *wdev;
};
@@ -153,8 +155,9 @@ static int dell_wmi_ddv_query_string(struct wmi_device *wdev, enum dell_ddv_meth
static int dell_wmi_ddv_battery_index(struct acpi_device *acpi_dev, u32 *index)
{
- const char *uid_str = acpi_device_uid(acpi_dev);
+ const char *uid_str;
+ uid_str = acpi_device_uid(acpi_dev);
if (!uid_str)
return -ENODEV;
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] platform/x86: dell-ddv: Minor style fixes
2022-09-28 22:15 [PATCH v2] platform/x86: dell-ddv: Minor style fixes Armin Wolf
@ 2022-09-29 9:54 ` Andy Shevchenko
2022-10-24 13:47 ` Hans de Goede
1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2022-09-29 9:54 UTC (permalink / raw)
To: Armin Wolf
Cc: hdegoede, markgross, rafael, lenb, hmh, matan, corentin.chary,
jeremy, productdev, mario.limonciello, pobrn, coproscefalo,
platform-driver-x86, linux-acpi, linux-kernel
On Thu, Sep 29, 2022 at 12:15:01AM +0200, Armin Wolf wrote:
> Fix some style issues found during review to improve
> code maintainability, no functional changes.
>
> Tested on a Dell Inspiron 3505.
LGTM,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] platform/x86: dell-ddv: Minor style fixes
2022-09-28 22:15 [PATCH v2] platform/x86: dell-ddv: Minor style fixes Armin Wolf
2022-09-29 9:54 ` Andy Shevchenko
@ 2022-10-24 13:47 ` Hans de Goede
1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2022-10-24 13:47 UTC (permalink / raw)
To: Armin Wolf, markgross
Cc: andriy.shevchenko, rafael, lenb, hmh, matan, corentin.chary,
jeremy, productdev, mario.limonciello, pobrn, coproscefalo,
platform-driver-x86, linux-acpi, linux-kernel
Hi,
On 9/29/22 00:15, Armin Wolf wrote:
> Fix some style issues found during review to improve
> code maintainability, no functional changes.
>
> Tested on a Dell Inspiron 3505.
>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Thank you for your patch, I've applied this patch 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
> ---
> Changes in v2:
> - change commit message
> ---
> drivers/platform/x86/dell/dell-wmi-ddv.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/platform/x86/dell/dell-wmi-ddv.c b/drivers/platform/x86/dell/dell-wmi-ddv.c
> index 6ccce90f475d..699feae3c435 100644
> --- a/drivers/platform/x86/dell/dell-wmi-ddv.c
> +++ b/drivers/platform/x86/dell/dell-wmi-ddv.c
> @@ -1,13 +1,12 @@
> // SPDX-License-Identifier: GPL-2.0-or-later
> /*
> - * dell-wmi-ddv.c -- Linux driver for WMI sensor information on Dell notebooks.
> + * Linux driver for WMI sensor information on Dell notebooks.
> *
> * Copyright (C) 2022 Armin Wolf <W_Armin@gmx.de>
> */
>
> #define pr_format(fmt) KBUILD_MODNAME ": " fmt
>
> -#include <acpi/battery.h>
> #include <linux/acpi.h>
> #include <linux/debugfs.h>
> #include <linux/device.h>
> @@ -21,6 +20,8 @@
> #include <linux/sysfs.h>
> #include <linux/wmi.h>
>
> +#include <acpi/battery.h>
> +
> #define DRIVER_NAME "dell-wmi-ddv"
>
> #define DELL_DDV_SUPPORTED_INTERFACE 2
> @@ -52,7 +53,8 @@ enum dell_ddv_method {
>
> struct dell_wmi_ddv_data {
> struct acpi_battery_hook hook;
> - struct device_attribute temp_attr, eppid_attr;
> + struct device_attribute temp_attr;
> + struct device_attribute eppid_attr;
> struct wmi_device *wdev;
> };
>
> @@ -153,8 +155,9 @@ static int dell_wmi_ddv_query_string(struct wmi_device *wdev, enum dell_ddv_meth
>
> static int dell_wmi_ddv_battery_index(struct acpi_device *acpi_dev, u32 *index)
> {
> - const char *uid_str = acpi_device_uid(acpi_dev);
> + const char *uid_str;
>
> + uid_str = acpi_device_uid(acpi_dev);
> if (!uid_str)
> return -ENODEV;
>
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-24 21:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 22:15 [PATCH v2] platform/x86: dell-ddv: Minor style fixes Armin Wolf
2022-09-29 9:54 ` Andy Shevchenko
2022-10-24 13:47 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).