diff mbox series

[1/2] ACPI: DPTF: Fix participant driver names

Message ID 2071902.YaQf1D0BmN@kreacher
State New
Headers show
Series [1/2] ACPI: DPTF: Fix participant driver names | expand

Commit Message

Rafael J. Wysocki Oct. 15, 2020, 4:58 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Change the names of DPTF participant drivers to adhere to the
sysfs file naming conventions (no spaces present in the name in
particular).

Fixes: 2ce6324eadb0 ("ACPI: DPTF: Add PCH FIVR participant driver")
Fixes: 6256ebd5daf9 ("ACPI / DPTF: Add DPTF power participant driver")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/acpi/dptf/dptf_pch_fivr.c |    2 +-
 drivers/acpi/dptf/dptf_power.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Srinivas Pandruvada Oct. 15, 2020, 7:47 p.m. UTC | #1
On Thu, 2020-10-15 at 18:58 +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

> 

> Change the names of DPTF participant drivers to adhere to the

> sysfs file naming conventions (no spaces present in the name in

> particular).

> 

> Fixes: 2ce6324eadb0 ("ACPI: DPTF: Add PCH FIVR participant driver")

> Fixes: 6256ebd5daf9 ("ACPI / DPTF: Add DPTF power participant

> driver")

> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>


> ---

>  drivers/acpi/dptf/dptf_pch_fivr.c |    2 +-

>  drivers/acpi/dptf/dptf_power.c    |    2 +-

>  2 files changed, 2 insertions(+), 2 deletions(-)

> 

> Index: linux-pm/drivers/acpi/dptf/dptf_pch_fivr.c

> ===================================================================

> --- linux-pm.orig/drivers/acpi/dptf/dptf_pch_fivr.c

> +++ linux-pm/drivers/acpi/dptf/dptf_pch_fivr.c

> @@ -114,7 +114,7 @@ static struct platform_driver pch_fivr_d

>  	.probe = pch_fivr_add,

>  	.remove = pch_fivr_remove,

>  	.driver = {

> -		.name = "DPTF PCH FIVR",

> +		.name = "dptf_pch_fivr",

>  		.acpi_match_table = pch_fivr_device_ids,

>  	},

>  };

> Index: linux-pm/drivers/acpi/dptf/dptf_power.c

> ===================================================================

> --- linux-pm.orig/drivers/acpi/dptf/dptf_power.c

> +++ linux-pm/drivers/acpi/dptf/dptf_power.c

> @@ -237,7 +237,7 @@ static struct platform_driver dptf_power

>  	.probe = dptf_power_add,

>  	.remove = dptf_power_remove,

>  	.driver = {

> -		.name = "DPTF Platform Power",

> +		.name = "dptf_power",

>  		.acpi_match_table = int3407_device_ids,

>  	},

>  };

> 

> 

>
Borislav Petkov Oct. 16, 2020, 8:23 a.m. UTC | #2
On Thu, Oct 15, 2020 at 06:58:43PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> Change the names of DPTF participant drivers to adhere to the
> sysfs file naming conventions (no spaces present in the name in
> particular).
> 
> Fixes: 2ce6324eadb0 ("ACPI: DPTF: Add PCH FIVR participant driver")
> Fixes: 6256ebd5daf9 ("ACPI / DPTF: Add DPTF power participant driver")
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>  drivers/acpi/dptf/dptf_pch_fivr.c |    2 +-
>  drivers/acpi/dptf/dptf_power.c    |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux-pm/drivers/acpi/dptf/dptf_pch_fivr.c
> ===================================================================
> --- linux-pm.orig/drivers/acpi/dptf/dptf_pch_fivr.c
> +++ linux-pm/drivers/acpi/dptf/dptf_pch_fivr.c
> @@ -114,7 +114,7 @@ static struct platform_driver pch_fivr_d
>  	.probe = pch_fivr_add,
>  	.remove = pch_fivr_remove,
>  	.driver = {
> -		.name = "DPTF PCH FIVR",
> +		.name = "dptf_pch_fivr",
>  		.acpi_match_table = pch_fivr_device_ids,
>  	},
>  };
> Index: linux-pm/drivers/acpi/dptf/dptf_power.c
> ===================================================================
> --- linux-pm.orig/drivers/acpi/dptf/dptf_power.c
> +++ linux-pm/drivers/acpi/dptf/dptf_power.c
> @@ -237,7 +237,7 @@ static struct platform_driver dptf_power
>  	.probe = dptf_power_add,
>  	.remove = dptf_power_remove,
>  	.driver = {
> -		.name = "DPTF Platform Power",
> +		.name = "dptf_power",
>  		.acpi_match_table = int3407_device_ids,
>  	},
>  };

Acked-by: Borislav Petkov <bp@suse.de>
diff mbox series

Patch

Index: linux-pm/drivers/acpi/dptf/dptf_pch_fivr.c
===================================================================
--- linux-pm.orig/drivers/acpi/dptf/dptf_pch_fivr.c
+++ linux-pm/drivers/acpi/dptf/dptf_pch_fivr.c
@@ -114,7 +114,7 @@  static struct platform_driver pch_fivr_d
 	.probe = pch_fivr_add,
 	.remove = pch_fivr_remove,
 	.driver = {
-		.name = "DPTF PCH FIVR",
+		.name = "dptf_pch_fivr",
 		.acpi_match_table = pch_fivr_device_ids,
 	},
 };
Index: linux-pm/drivers/acpi/dptf/dptf_power.c
===================================================================
--- linux-pm.orig/drivers/acpi/dptf/dptf_power.c
+++ linux-pm/drivers/acpi/dptf/dptf_power.c
@@ -237,7 +237,7 @@  static struct platform_driver dptf_power
 	.probe = dptf_power_add,
 	.remove = dptf_power_remove,
 	.driver = {
-		.name = "DPTF Platform Power",
+		.name = "dptf_power",
 		.acpi_match_table = int3407_device_ids,
 	},
 };