Message ID | 20231023053530.5525-6-raag.jadav@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1090435vqx; Sun, 22 Oct 2023 22:37:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOoMcyEivZhAGhHSCP7iWNejwMGwE3+UHu3ShgVIkbIXdUwszd49TMNRZbYGa8aKFTuZYa X-Received: by 2002:a92:d20e:0:b0:357:51fa:ac5a with SMTP id y14-20020a92d20e000000b0035751faac5amr8728945ily.1.1698039429810; Sun, 22 Oct 2023 22:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698039429; cv=none; d=google.com; s=arc-20160816; b=Y7m13snyMw9tubzrh706NdqoI75LZ7IXglh8OVr2m68HSrfkAwKWJtdeUeYkg6CKeG M07UHIYxzOzkruKGcINs2Unei3+NzyptPdJqbCvuHQdI23sYfzm/yCuG1X5SvZI7G1l7 RDg8tws1zJZWCkFNcgM8clc8tEsTLp01k4Z4BobErbTthbqUIL1JAFv0AH15ikyPErEm nSR5N7iVLpsmqvycs6q3d9R6Sqjp8MSQxdPbAfxDMUQdvV+ZPjdaNNwTmQnTr/0UOvQN vf8pYMrUjldDuHidpvq9x1AMYPMe5XDBzzqIwpmRN6FY0S5jSpzcVVuKJPWKgt+ZcvR6 4YuA== 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=/uG3Q5lM+p6ucBILyCOrQLnu0ByvCA+27+HTc2ZIGIU=; fh=jahFJYSZbW5wMNYi6sgvoYqPjA4Ed86fT1kpbcI5rrM=; b=hy00SGED09IntNSmoggZwKohnZIP2BW1jvSdy4KZeXXz9DA3laZW3IuTZsXD6HnOP+ J/B3W75Kpg28XS2pZ6B1L9gg1Ju2jE4hC9nIc+EuC8V22kkp/fTQs9/iAj6kFZBq49SH d5najFmzcaDYk9HVElwmRLCa+nY1DEKcxjx+vOr6Vo0vbnKpVUto/1sbEHEiGT36VjEw +DIs1xgHtGj79fD2ncy4M5M1P9Ab0akUUjh8fPURUfN8X8AnkzGCjtHfeeXCO8/P/6Sj r/oDXQOZ5ThK0P8WiJasj32j87D/qcptIp0ivORjtbODX10PZ0drcpLdSG3+jCilZIi3 klEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WIyPhERr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q5-20020aa79825000000b006bf537ce976si3350237pfl.260.2023.10.22.22.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 22:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WIyPhERr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 8CA37805D5FF; Sun, 22 Oct 2023 22:37:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229458AbjJWFgo (ORCPT <rfc822;a1648639935@gmail.com> + 26 others); Mon, 23 Oct 2023 01:36:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjJWFgb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 01:36:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CF3ED60; Sun, 22 Oct 2023 22:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698039389; x=1729575389; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=iUljf5QPUJwxYR0tI8SM3GVeSDgYpl24Lk1AfcVvgFI=; b=WIyPhERraJnEeFXMHjmfrbmiHndC/cKjrH4wIqOwOdF2saCZHuMTe15C MThn0Ajy5gfPegeRAUiBPmw9t59JVi0+xVr6v/ADU7BeV7oUWGhj6xdUE +SguOQFVi3Two8T99wJLyJsSqKPBWUeUfePzxrX1DgvJ2LQk4DoQ01FIE 80qz6rwAjVdkPM1Oo+wZSYTcB+VUq+J1F2lJySM4HU+WV/ukmzYLEMsa7 i/zzL+rNTN3iub0r4mEnBmI/ZJ+Fr6EaAXWvgkfzhSdunQOuAziVCqdPV uKRSkmbLE2cYv4+yFpk7ZhyixxNxq8aPc92kbwWgZwL18lkv8cVq361L6 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="417905450" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="417905450" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2023 22:36:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="734556697" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="734556697" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga006.jf.intel.com with ESMTP; 22 Oct 2023 22:36:19 -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, Jonathan.Cameron@Huawei.com 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 v2 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID Date: Mon, 23 Oct 2023 11:05:29 +0530 Message-Id: <20231023053530.5525-6-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231023053530.5525-1-raag.jadav@intel.com> References: <20231023053530.5525-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 22:37:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780523393062921046 X-GMAIL-MSGID: 1780523393062921046 |
Series |
Refine _UID references across kernel
|
|
Commit Message
Raag Jadav
Oct. 23, 2023, 5:35 a.m. UTC
Convert manual _UID references to use the standard ACPI helper.
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; }