projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c11e4
)
hwmon: (nct6775) use acpi_dev_hid_uid_match() for matching _HID and _UID
author
Raag Jadav
<raag.jadav@intel.com>
Tue, 24 Oct 2023 06:20:17 +0000
(11:50 +0530)
committer
Guenter Roeck
<linux@roeck-us.net>
Sat, 28 Oct 2023 16:21:17 +0000
(09:21 -0700)
Convert manual _UID references to use the standard ACPI helper.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Link:
https://lore.kernel.org/r/20231024062018.23839-6-raag.jadav@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775-platform.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/nct6775-platform.c
b/drivers/hwmon/nct6775-platform.c
index 81bf03dad6bbc528b9fc7eddd87d93cabf0bf8f3..0adeeab7ee03c08be49bf073941137312cd7e006 100644
(file)
--- a/
drivers/hwmon/nct6775-platform.c
+++ b/
drivers/hwmon/nct6775-platform.c
@@
-1465,10
+1465,8
@@
static const char * const asus_msi_boards[] = {
static int nct6775_asuswmi_device_match(struct device *dev, void *data)
{
struct acpi_device *adev = to_acpi_device(dev);
- const char *uid = acpi_device_uid(adev);
- const char *hid = acpi_device_hid(adev);
- if (
hid && !strcmp(hid, ASUSWMI_DEVICE_HID) && uid && !strcmp(uid
, data)) {
+ if (
acpi_dev_hid_uid_match(adev, ASUSWMI_DEVICE_HID
, data)) {
asus_acpi_dev = adev;
return 1;
}