public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add support for Ayaneo Air Plus 7320u.
@ 2024-02-07  8:42 Sebastian Kranz
  2024-02-07 14:55 ` Guenter Roeck
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Kranz @ 2024-02-07  8:42 UTC (permalink / raw)
  To: linux
  Cc: samsagax, derekjohn.clark, jdelvare, linux-hwmon, linux-kernel,
	Sebastian Kranz

---
 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:
-- 
2.43.0


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

end of thread, other threads:[~2024-02-09 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07  8:42 [PATCH] Add support for Ayaneo Air Plus 7320u Sebastian Kranz
2024-02-07 14:55 ` Guenter Roeck
2024-02-08 12:25   ` Sebastian Kranz
2024-02-08 14:14     ` Guenter Roeck
2024-02-09  9:01       ` [PATCH V2] hwmon: (oxp-sensors) " Sebastian Kranz
2024-02-09 15:01         ` Guenter Roeck
2024-02-09 19:51           ` Sebastian Kranz

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