diff options
author | Tony Luck <tony.luck@intel.com> | 2024-05-29 10:19:20 -0700 |
---|---|---|
committer | Iwona Winiarska <iwona.winiarska@intel.com> | 2024-06-17 15:15:46 +0200 |
commit | a43b9ec091b1b1924ea18883a715e5aadba2543e (patch) | |
tree | bdecdd1ed7982fe55a7adde0ecbf767a839007cb /drivers/peci/core.c | |
parent | 6ba59ff4227927d3a8530fc2973b80e94b54d58f (diff) |
peci, hwmon: Switch to new Intel CPU model defines
Update peci subsystem to use the same vendor-family-model
combined definition that core x86 code uses.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Iwona Winiarska <iwona.winiarska@intel.com>
Link: https://lore.kernel.org/r/20240529171920.62571-1-tony.luck@intel.com
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Diffstat (limited to 'drivers/peci/core.c')
-rw-r--r-- | drivers/peci/core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/peci/core.c b/drivers/peci/core.c index 8f8bda2f2a62..8ff3e5d225ae 100644 --- a/drivers/peci/core.c +++ b/drivers/peci/core.c @@ -163,9 +163,8 @@ EXPORT_SYMBOL_NS_GPL(devm_peci_controller_add, PECI); static const struct peci_device_id * peci_bus_match_device_id(const struct peci_device_id *id, struct peci_device *device) { - while (id->family != 0) { - if (id->family == device->info.family && - id->model == device->info.model) + while (id->x86_vfm != 0) { + if (id->x86_vfm == device->info.x86_vfm) return id; id++; } |