hwmon: (oxp-sensors) Add new DMI match for OXP Mini

Message ID 20230517183540.187383-1-samsagax@gmail.com
State New
Headers
Series hwmon: (oxp-sensors) Add new DMI match for OXP Mini |

Commit Message

Joaquín Ignacio Aramendía May 17, 2023, 6:35 p.m. UTC
  A newer BIOS version for the OneXPlayer Mini AMD modified vendor and
board name strings. Add those to the match table and set the same board
model as older OXP Mini AMD.

Signed-off-by: Joaquín Ignacio Aramendía <samsagax@gmail.com>
---
 drivers/hwmon/oxp-sensors.c | 7 +++++++
 1 file changed, 7 insertions(+)
  

Comments

Guenter Roeck May 19, 2023, 12:49 p.m. UTC | #1
On Wed, May 17, 2023 at 03:35:41PM -0300, Joaquín Ignacio Aramendía wrote:
> A newer BIOS version for the OneXPlayer Mini AMD modified vendor and
> board name strings. Add those to the match table and set the same board
> model as older OXP Mini AMD.
> 
> Signed-off-by: Joaquín Ignacio Aramendía <samsagax@gmail.com>

Applied.

Thanks,
Guenter
  

Patch

diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c
index 7828c1d36695..b52bf8c4768a 100644
--- a/drivers/hwmon/oxp-sensors.c
+++ b/drivers/hwmon/oxp-sensors.c
@@ -99,6 +99,13 @@  static const struct dmi_system_id dmi_table[] = {
 		},
 		.driver_data = (void *)oxp_mini_amd,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "ONE-NETBOOK"),
+			DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONEXPLAYER mini A07"),
+		},
+		.driver_data = (void *)oxp_mini_amd,
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "ONE-NETBOOK"),