Add support for Ayaneo Air Plus 7320u.

Message ID 20240207084206.2204-1-tklightforce@googlemail.com
State New
Headers
Series Add support for Ayaneo Air Plus 7320u. |

Commit Message

Sebastian Kranz Feb. 7, 2024, 8:42 a.m. UTC
  ---
 drivers/hwmon/oxp-sensors.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
  

Comments

Guenter Roeck Feb. 7, 2024, 2:55 p.m. UTC | #1
On 2/7/24 00:42, Sebastian Kranz wrote:
> ---

Patch description missing.

>   drivers/hwmon/oxp-sensors.c | 10 ++++++++++
>   1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c
> index ea9602063eab..8d3b0f86cc57 100644
> --- a/drivers/hwmon/oxp-sensors.c
> +++ b/drivers/hwmon/oxp-sensors.c
> @@ -43,6 +43,7 @@ enum oxp_board {
>   	aok_zoe_a1 = 1,
>   	aya_neo_2,
>   	aya_neo_air,
> +	aya_neo_air_plus_mendo,
>   	aya_neo_air_pro,
>   	aya_neo_geek,
>   	oxp_mini_amd,
> @@ -98,6 +99,13 @@ static const struct dmi_system_id dmi_table[] = {
>   		},
>   		.driver_data = (void *)aya_neo_air,
>   	},
> +	{
> +		.matches = {
> +			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
> +			DMI_EXACT_MATCH(DMI_BOARD_NAME, "AB05-Mendocino"),
> +		},
> +		.driver_data = (void *)aya_neo_air_plus_mendo,
> +	},
>   	{
>   		.matches = {
>   			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
> @@ -332,6 +340,7 @@ static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type,
>   			switch (board) {
>   			case aya_neo_2:
>   			case aya_neo_air:
> +			case aya_neo_air_plus_mendo:
>   			case aya_neo_air_pro:
>   			case aya_neo_geek:
>   			case oxp_mini_amd:
> @@ -374,6 +383,7 @@ static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type,
>   			switch (board) {
>   			case aya_neo_2:
>   			case aya_neo_air:
> +			case aya_neo_air_plus_mendo:
>   			case aya_neo_air_pro:
>   			case aya_neo_geek:
>   			case oxp_mini_amd:
  
Sebastian Kranz Feb. 8, 2024, 12:25 p.m. UTC | #2
Subject: [PATCH] hwmon: (oxp-sensors) Add Ayaneo Air Plus 7320u

Am 7. Februar 2024 15:55:39 MEZ schrieb Guenter Roeck <linux@roeck-us.net>:
>On 2/7/24 00:42, Sebastian Kranz wrote:
>> ---
>
>Patch description missing.
>
>>   drivers/hwmon/oxp-sensors.c | 10 ++++++++++
>>   1 file changed, 10 insertions(+)
>> 
>> diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c
>> index ea9602063eab..8d3b0f86cc57 100644
>> --- a/drivers/hwmon/oxp-sensors.c
>> +++ b/drivers/hwmon/oxp-sensors.c
>> @@ -43,6 +43,7 @@ enum oxp_board {
>>   	aok_zoe_a1 = 1,
>>   	aya_neo_2,
>>   	aya_neo_air,
>> +	aya_neo_air_plus_mendo,
>>   	aya_neo_air_pro,
>>   	aya_neo_geek,
>>   	oxp_mini_amd,
>> @@ -98,6 +99,13 @@ static const struct dmi_system_id dmi_table[] = {
>>   		},
>>   		.driver_data = (void *)aya_neo_air,
>>   	},
>> +	{
>> +		.matches = {
>> +			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
>> +			DMI_EXACT_MATCH(DMI_BOARD_NAME, "AB05-Mendocino"),
>> +		},
>> +		.driver_data = (void *)aya_neo_air_plus_mendo,
>> +	},
>>   	{
>>   		.matches = {
>>   			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
>> @@ -332,6 +340,7 @@ static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type,
>>   			switch (board) {
>>   			case aya_neo_2:
>>   			case aya_neo_air:
>> +			case aya_neo_air_plus_mendo:
>>   			case aya_neo_air_pro:
>>   			case aya_neo_geek:
>>   			case oxp_mini_amd:
>> @@ -374,6 +383,7 @@ static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type,
>>   			switch (board) {
>>   			case aya_neo_2:
>>   			case aya_neo_air:
>> +			case aya_neo_air_plus_mendo:
>>   			case aya_neo_air_pro:
>>   			case aya_neo_geek:
>>   			case oxp_mini_amd:
>
  
Guenter Roeck Feb. 8, 2024, 2:14 p.m. UTC | #3
On 2/8/24 04:25, Sebastian Kranz wrote:
> Subject: [PATCH] hwmon: (oxp-sensors) Add Ayaneo Air Plus 7320u
> 

Not sure I understand what you are trying to say here. Yes, obviously
your patch has a subject. It still needs a description. See
"Describe your changes" in Documentation/process/submitting-patches.rst.

Guenter
  

Patch

diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c
index ea9602063eab..8d3b0f86cc57 100644
--- a/drivers/hwmon/oxp-sensors.c
+++ b/drivers/hwmon/oxp-sensors.c
@@ -43,6 +43,7 @@  enum oxp_board {
 	aok_zoe_a1 = 1,
 	aya_neo_2,
 	aya_neo_air,
+	aya_neo_air_plus_mendo,
 	aya_neo_air_pro,
 	aya_neo_geek,
 	oxp_mini_amd,
@@ -98,6 +99,13 @@  static const struct dmi_system_id dmi_table[] = {
 		},
 		.driver_data = (void *)aya_neo_air,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
+			DMI_EXACT_MATCH(DMI_BOARD_NAME, "AB05-Mendocino"),
+		},
+		.driver_data = (void *)aya_neo_air_plus_mendo,
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
@@ -332,6 +340,7 @@  static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type,
 			switch (board) {
 			case aya_neo_2:
 			case aya_neo_air:
+			case aya_neo_air_plus_mendo:
 			case aya_neo_air_pro:
 			case aya_neo_geek:
 			case oxp_mini_amd:
@@ -374,6 +383,7 @@  static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type,
 			switch (board) {
 			case aya_neo_2:
 			case aya_neo_air:
+			case aya_neo_air_plus_mendo:
 			case aya_neo_air_pro:
 			case aya_neo_geek:
 			case oxp_mini_amd: