[V2,1/3] Modify to support Phytium FT2000/4 CPU for acpi

Message ID 9CAB43B4193E4C62+Y37kSTHfZuJeOvI8@TP-P15V.lan
State New
Headers
Series [V2,1/3] Modify to support Phytium FT2000/4 CPU for acpi |

Commit Message

Wang Honghui Nov. 24, 2022, 3:26 a.m. UTC
  Modify to support Phytium FT2000/4 CPU for acpi

Signed-off-by: Wang Honghui <honghui.wang@ucas.com.cn>
---
 drivers/hwmon/scpi-hwmon.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Guenter Roeck Nov. 24, 2022, 2:25 p.m. UTC | #1
On 11/23/22 19:26, Wang Honghui wrote:
> Modify to support Phytium FT2000/4 CPU for acpi
> 
> Signed-off-by: Wang Honghui <honghui.wang@ucas.com.cn>
> ---
>   drivers/hwmon/scpi-hwmon.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c
> index 6021ae00b334..a6ee9806e47e 100644
> --- a/drivers/hwmon/scpi-hwmon.c
> +++ b/drivers/hwmon/scpi-hwmon.c
> @@ -316,6 +316,7 @@ static struct platform_driver scpi_hwmon_platdrv = {
>   	.driver = {
>   		.name	= "scpi-hwmon",
>   		.of_match_table = scpi_of_match,
> +		.acpi_match_table = scpi_sensors_acpi_match,
>   	},
>   	.probe		= scpi_hwmon_probe,
>   };


This patch on its own doesn't make sense. It seems to be a fix of v1, not
a new version of v1. Your subject lines are off. Modify what ?
The subject should be something like "hwmon: (scpi) Add ACPI support for...".

Guenter
  

Patch

diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c
index 6021ae00b334..a6ee9806e47e 100644
--- a/drivers/hwmon/scpi-hwmon.c
+++ b/drivers/hwmon/scpi-hwmon.c
@@ -316,6 +316,7 @@  static struct platform_driver scpi_hwmon_platdrv = {
 	.driver = {
 		.name	= "scpi-hwmon",
 		.of_match_table = scpi_of_match,
+		.acpi_match_table = scpi_sensors_acpi_match,
 	},
 	.probe		= scpi_hwmon_probe,
 };