Message ID | 20231020084732.17130-8-raag.jadav@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp913831vqb; Fri, 20 Oct 2023 01:49:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2A7pOdb7fsyEy+8Ls0dBVHuhYIXGLqejlD8+KzKinbUKS2ULx4U+Y+5dXUf/0JAlITjXd X-Received: by 2002:a25:8212:0:b0:d9a:4bc3:226e with SMTP id q18-20020a258212000000b00d9a4bc3226emr1041741ybk.37.1697791746354; Fri, 20 Oct 2023 01:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697791746; cv=none; d=google.com; s=arc-20160816; b=He2eiDZop+/HOyfce4uTPGwC6q6peyy4lFYrY9/ERZ/jaLb67ulc1ALOjG53t1rGhQ D7jlWE3s8KbyJrPgFkU4PJnB7dCTiKQkGinEwBJsIOxloOeVMOTNK8mfFeG+Q2FM6ait HdsC3NjG9BloXuzVwXlC1MDhiZ65DKfCpepwTP8bRcZKPnZ2kVuFDvHYTEg+ywsK8tGi i5GV7JVfL106m6PgYNsSg3RgsEEnqiduJ8Yl6AxvObs6fZH3hUtJk960Eab0htoS6cnS 82rKLQ8Hvb/fc08oPE6FZlO6rnxKViZSiVBeiwDBqPqViFUL1HcwpRz1gKysu1H9WjAv cGeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=YLWHOj5EdRcjrtiFbZpabhnnkLUZ9VIvg6RwhgBvVQw=; fh=WAU8dvHbCVEKt7PKP55MCP59DfghQ92mfS2Ma7uEses=; b=PiMbHsHbJDUpS2qPoUGi4Wa4aYgOU1p9XHEgjhaPfg5QC786tYhtD0LM5/ZeZgOusV mC+cRueecJRJ8qLJcRAWarTWEXcXFefZhQTre+OdPwoLxBdemk5KRwk56nRfHDwibLKK 4OOML+GRaO07jsZvi0KVHuueJm/Afze3sol7IRrgX+HrJYavm4iDijGhALBEPr1aIKIO ybiabpvVlGMJjQMz4+nvP8aT1/J+OaLOXkru928TQJeEyqM1FUhSZuyKx5bwL1Ut0J7W EZeJso+mh1UPIcLCPC0/92i1+tk608L4U9sIQWqmvAiXvcBuH3nrsXOC2YVUr9WCKrni eANw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OJJrz6hA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q3-20020aa79603000000b006910a45a23bsi1385729pfg.366.2023.10.20.01.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OJJrz6hA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 48997819705C; Fri, 20 Oct 2023 01:49:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376521AbjJTIsh (ORCPT <rfc822;lkml4gm@gmail.com> + 25 others); Fri, 20 Oct 2023 04:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376564AbjJTIsX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 20 Oct 2023 04:48:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41E48D64; Fri, 20 Oct 2023 01:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697791701; x=1729327701; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=VTxu+ilZT0ByPxEPyTKRaS8c0W/p+nQekrV/1V+4jQc=; b=OJJrz6hApE3sw6lDZqb8SB4GEC11s7v/9R+obMP2aEzczlg9uNzAIPSH H3pMB+a0CrRfIQL1lA4DqROiojZnyGBB4bZ33HYgdW/JKK3/scW0GJthy 6KJ/qeyPyziR8NZ4pULcMwT9E0ila2iHvm1NHEEH9wsEXJ6HgP3B6vjMv 5Tu7T20Z+XagQo7xp4D7PtmfPpvry9lCVmkWNKjkr5y1PRkyj2iFinB5W YKzs4HEV961WbhAI2nq2fMFsjNDMDQHI82ZQ9drhNAtWtUObSWzjEPSO/ xnCiUi7LWmkJXe+EjeEHfK6QgjaOW0ryJ4xByqY+9SYtuk7+uCMmtJf12 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="450683647" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="450683647" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 01:48:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="873832198" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="873832198" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga002.fm.intel.com with ESMTP; 20 Oct 2023 01:48:16 -0700 From: Raag Jadav <raag.jadav@intel.com> To: rafael@kernel.org, len.brown@intel.com, robert.moore@intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, mark.rutland@arm.com, will@kernel.org, linux@roeck-us.net Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav <raag.jadav@intel.com> Subject: [PATCH v1 7/8] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID Date: Fri, 20 Oct 2023 14:17:31 +0530 Message-Id: <20231020084732.17130-8-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231020084732.17130-1-raag.jadav@intel.com> References: <20231020084732.17130-1-raag.jadav@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:49:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780263678302673250 X-GMAIL-MSGID: 1780263678302673250 |
Series |
Refine _UID references across kernel
|
|
Commit Message
Raag Jadav
Oct. 20, 2023, 8:47 a.m. UTC
Convert manual _UID references to use standard ACPI helpers.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/hwmon/nct6775-platform.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/nct6775-platform.c b/drivers/hwmon/nct6775-platform.c index 81bf03dad6bb..0adeeab7ee03 100644 --- 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; }