public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: acpi: Fix formatting issues where braces should be on newlines
@ 2023-09-28 22:13 Jonathan Bergh
  2023-10-03 18:57 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Bergh @ 2023-09-28 22:13 UTC (permalink / raw)
  To: lenb, rui.zhang; +Cc: linux-acpi, linux-kernel, Jonathan Bergh

Fix the following formatting issues in thermal.c:
 * braces following function declarations should be on a new line
 * add single line between function declarations

Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
---
 drivers/acpi/thermal.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 312730f8272e..dea5f8a51f87 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -1046,7 +1046,8 @@ static struct acpi_driver acpi_thermal_driver = {
 	.drv.pm = &acpi_thermal_pm,
 };
 
-static int thermal_act(const struct dmi_system_id *d) {
+static int thermal_act(const struct dmi_system_id *d)
+{
 	if (act == 0) {
 		pr_notice("%s detected: disabling all active thermal trip points\n",
 			  d->ident);
@@ -1054,13 +1055,17 @@ static int thermal_act(const struct dmi_system_id *d) {
 	}
 	return 0;
 }
-static int thermal_nocrt(const struct dmi_system_id *d) {
+
+static int thermal_nocrt(const struct dmi_system_id *d)
+{
 	pr_notice("%s detected: disabling all critical thermal trip point actions.\n",
 		  d->ident);
 	crt = -1;
 	return 0;
 }
-static int thermal_tzp(const struct dmi_system_id *d) {
+
+static int thermal_tzp(const struct dmi_system_id *d)
+{
 	if (tzp == 0) {
 		pr_notice("%s detected: enabling thermal zone polling\n",
 			  d->ident);
@@ -1068,7 +1073,9 @@ static int thermal_tzp(const struct dmi_system_id *d) {
 	}
 	return 0;
 }
-static int thermal_psv(const struct dmi_system_id *d) {
+
+static int thermal_psv(const struct dmi_system_id *d)
+{
 	if (psv == 0) {
 		pr_notice("%s detected: disabling all passive thermal trip points\n",
 			  d->ident);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers: acpi: Fix formatting issues where braces should be on newlines
  2023-09-28 22:13 [PATCH] drivers: acpi: Fix formatting issues where braces should be on newlines Jonathan Bergh
@ 2023-10-03 18:57 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2023-10-03 18:57 UTC (permalink / raw)
  To: Jonathan Bergh; +Cc: lenb, rui.zhang, linux-acpi, linux-kernel

On Fri, Sep 29, 2023 at 12:31 AM Jonathan Bergh
<bergh.jonathan@gmail.com> wrote:
>
> Fix the following formatting issues in thermal.c:
>  * braces following function declarations should be on a new line
>  * add single line between function declarations
>
> Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
> ---
>  drivers/acpi/thermal.c | 15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
> index 312730f8272e..dea5f8a51f87 100644
> --- a/drivers/acpi/thermal.c
> +++ b/drivers/acpi/thermal.c
> @@ -1046,7 +1046,8 @@ static struct acpi_driver acpi_thermal_driver = {
>         .drv.pm = &acpi_thermal_pm,
>  };
>
> -static int thermal_act(const struct dmi_system_id *d) {
> +static int thermal_act(const struct dmi_system_id *d)
> +{
>         if (act == 0) {
>                 pr_notice("%s detected: disabling all active thermal trip points\n",
>                           d->ident);
> @@ -1054,13 +1055,17 @@ static int thermal_act(const struct dmi_system_id *d) {
>         }
>         return 0;
>  }
> -static int thermal_nocrt(const struct dmi_system_id *d) {
> +
> +static int thermal_nocrt(const struct dmi_system_id *d)
> +{
>         pr_notice("%s detected: disabling all critical thermal trip point actions.\n",
>                   d->ident);
>         crt = -1;
>         return 0;
>  }
> -static int thermal_tzp(const struct dmi_system_id *d) {
> +
> +static int thermal_tzp(const struct dmi_system_id *d)
> +{
>         if (tzp == 0) {
>                 pr_notice("%s detected: enabling thermal zone polling\n",
>                           d->ident);
> @@ -1068,7 +1073,9 @@ static int thermal_tzp(const struct dmi_system_id *d) {
>         }
>         return 0;
>  }
> -static int thermal_psv(const struct dmi_system_id *d) {
> +
> +static int thermal_psv(const struct dmi_system_id *d)
> +{
>         if (psv == 0) {
>                 pr_notice("%s detected: disabling all passive thermal trip points\n",
>                           d->ident);
> --

Applied as 6.7 material (with edited subject and changelog), thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-03 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-28 22:13 [PATCH] drivers: acpi: Fix formatting issues where braces should be on newlines Jonathan Bergh
2023-10-03 18:57 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox