Commit 7b839f76 authored by Andy Shevchenko's avatar Andy Shevchenko

platform/x86: intel_cht_int33fe: Switch to use acpi_dev_hid_uid_match()

Since we have a generic helper, drop custom implementation in the driver.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
parent fa0c9cb1
...@@ -40,16 +40,13 @@ static int cht_int33fe_check_for_max17047(struct device *dev, void *data) ...@@ -40,16 +40,13 @@ static int cht_int33fe_check_for_max17047(struct device *dev, void *data)
{ {
struct i2c_client **max17047 = data; struct i2c_client **max17047 = data;
struct acpi_device *adev; struct acpi_device *adev;
const char *hid;
adev = ACPI_COMPANION(dev); adev = ACPI_COMPANION(dev);
if (!adev) if (!adev)
return 0; return 0;
hid = acpi_device_hid(adev);
/* The MAX17047 ACPI node doesn't have an UID, so we don't check that */ /* The MAX17047 ACPI node doesn't have an UID, so we don't check that */
if (strcmp(hid, "MAX17047")) if (!acpi_dev_hid_uid_match(adev, "MAX17047", NULL))
return 0; return 0;
*max17047 = to_i2c_client(dev); *max17047 = to_i2c_client(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment