Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1173599rdb; Fri, 20 Oct 2023 10:19:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7Mq4jdhVV7XM+AlKZsc6bRVwEiuSYkAVCbIosDlzMN8h75tW4jzFp2/ZmpilSCkqPzZM1 X-Received: by 2002:a05:6a21:35c9:b0:14c:3218:c1bd with SMTP id ba9-20020a056a2135c900b0014c3218c1bdmr2314586pzc.11.1697822341799; Fri, 20 Oct 2023 10:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697822341; cv=none; d=google.com; s=arc-20160816; b=Iv2nk52jE2s5xuEDAEaofaZpi28M5SV59A9BaZtFmAKNsYZ5dZJbqltTxnm51J8JGQ zLoROCuAQWoijxv3CIETwEhKy+OZtNgteqZnMeL55E+X77J4IWx9iFtoRaMmdXSUtwXn eBgpNUjbI9V9ch3zeYnueoFrYiKNrALafEFMD5FVscLLMO/qUP+l8/d+wvJ9r9CXYc4j dnEnA2ZFmT9mLP+BRoLNdtEELlF4K+m0ohVvqO0lrF7UhUzml3lAbeFuErXUJBJSwelS GFS4SLQ7rJ3igUr9iRvXRU40YabzZ5tfMHXJ2+XEXCNAbsWCcekKrESmXEB9UFewGJ5t BZTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=HahynarmVaXguLCPzS9ufupinupOVfkj3q3rmkyyS9s=; fh=aNQCjOzKP2yvr8+SDBBBHwv0JQoS4abwYGfFQUWbLV4=; b=QATNttwd1s3ziKPEDKOBCgcOwm5jW1Sb3xrydqhWpaBmhzKGXHJWOFugP2zGtfjIL9 MZpnw0nBFOgVH7+IwhjoQPxAFageW64ctUcgCRSm4gXHVzYSq+JSZbs1EiDLolFnA0J6 dtVK13zv8ZHGFJduT9n/enJXk930K4yT6axsUBAJKET2FXSJTNQivWO1qrq8soNXkw15 ivZkIBIm/Gl0zv2j38uIu35Ddr1lGQa8SdGXPiqJoD5LUR6X+7JwjRDdNINJNT6JVJmf p7qL9u7NnVNjtiXUiuae7oA7xgZt2jrxhDqGV0XeHdegBjPVV2DzhjK9rRHhGHrxHksP G7jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z24-20020a656658000000b005740b4723f9si2441355pgv.811.2023.10.20.10.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 10:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A193F830C310; Fri, 20 Oct 2023 10:19:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjJTRS6 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 20 Oct 2023 13:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377497AbjJTRSz (ORCPT ); Fri, 20 Oct 2023 13:18:55 -0400 Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649451A3; Fri, 20 Oct 2023 10:18:54 -0700 (PDT) Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-582a82e6d10so186377eaf.0; Fri, 20 Oct 2023 10:18:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697822333; x=1698427133; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6n25ZsIjVgwdoWfh3XSdHmKLoMT8TMmQ/tKnMBeP8l4=; b=hEy99NOaBsqoDKNsVa54kId7XTthfGeGwu3Ci3xqfJb6OiQPAvjCiGTNGsub2C9fwA rak3XdfAiDr7pAHyuTRrY63ZsM47O6j7tFuuv5WVsuKNoqWNoUxKqXHMYMssVcKqvBcB gHk2RUHndkN8w7uNNd963dIT2e0jtSD2zaL2YzD4Ytfpm9O67K5PxragTzqCKz3LoCco 4E1plQQUvbeA/Sa7wZ+PaOrkk3NyvIRo2iasVNOqZo2/stEqDeG0rZiU9nVahkK/XYP8 HTJ/82q56b5Fa3tkP6E+kVnNtLtUnd89ePlPMgDNmN/Dw1m4qJuy5RD0QuDsnbbpURMo sFVQ== X-Gm-Message-State: AOJu0Yy4RkECe5W1nMObrUhefgqEmA43V3iUKkSVIqC+bcbAojLNz/LG gLnzM8x3CgykGtzu+P0u2HP8Nmjvd9Jd8mqEPSg= X-Received: by 2002:a4a:bb0f:0:b0:583:fc94:c3fd with SMTP id f15-20020a4abb0f000000b00583fc94c3fdmr2933669oop.0.1697822333648; Fri, 20 Oct 2023 10:18:53 -0700 (PDT) MIME-Version: 1.0 References: <20231020084732.17130-1-raag.jadav@intel.com> <20231020084732.17130-4-raag.jadav@intel.com> In-Reply-To: <20231020084732.17130-4-raag.jadav@intel.com> From: "Rafael J. Wysocki" Date: Fri, 20 Oct 2023 19:18:42 +0200 Message-ID: Subject: Re: [PATCH v1 3/8] ACPI: sysfs: use acpi_device_uid() for fetching _UID To: Raag Jadav Cc: 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, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 10:19:00 -0700 (PDT) On Fri, Oct 20, 2023 at 10:48 AM Raag Jadav wrote: > > Convert manual _UID references to use standard ACPI helpers. > > Signed-off-by: Raag Jadav > --- > drivers/acpi/device_sysfs.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c > index b9bbf0746199..9d8e90744cb5 100644 > --- a/drivers/acpi/device_sysfs.c > +++ b/drivers/acpi/device_sysfs.c > @@ -410,7 +410,7 @@ static ssize_t uid_show(struct device *dev, > { > struct acpi_device *acpi_dev = to_acpi_device(dev); > > - return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id); > + return sprintf(buf, "%s\n", acpi_device_uid(acpi_dev)); > } > static DEVICE_ATTR_RO(uid); > > @@ -554,7 +554,7 @@ int acpi_device_setup_files(struct acpi_device *dev) > > if (dev->pnp.type.bus_address) > result = device_create_file(&dev->dev, &dev_attr_adr); > - if (dev->pnp.unique_id) > + if (acpi_device_uid(dev)) > result = device_create_file(&dev->dev, &dev_attr_uid); > > if (acpi_has_method(dev->handle, "_SUN")) { > @@ -635,7 +635,7 @@ void acpi_device_remove_files(struct acpi_device *dev) > if (acpi_has_method(dev->handle, "_HRV")) > device_remove_file(&dev->dev, &dev_attr_hrv); > > - if (dev->pnp.unique_id) > + if (acpi_device_uid(dev)) > device_remove_file(&dev->dev, &dev_attr_uid); > if (dev->pnp.type.bus_address) > device_remove_file(&dev->dev, &dev_attr_adr); > -- Applied as 6.7 material, thanks!