Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp1285781rwb; Sat, 3 Sep 2022 12:09:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4c9oUQNkJ0u7wHDT/9CigNZYo3dNz8AYokbWf35I5Jp9c2Kc7u7bBPAk+gRzuu6TyatWIU X-Received: by 2002:a05:6402:26cb:b0:448:2af2:bb81 with SMTP id x11-20020a05640226cb00b004482af2bb81mr28966935edd.424.1662232169774; Sat, 03 Sep 2022 12:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662232169; cv=none; d=google.com; s=arc-20160816; b=k3SM2OxBZB5Dr1ayP2s4qZrT137ezfFMrIZE5/FsWSemNauZy0cf2GEwtVARfaARiL 80WstDCgzRSbJQK9m4UmlRigLXd7couQWBRRrXanmzJ3ELJQfHGJf9Sk9FjQk4NZQyUD dAy9DVAVHtXX8tGlJed6qHReZhk1xUqS4UQouZOnxy50s57YRCm1Rmrc7K60vDEAnZxZ jNXZvYjshVRboEnVrMj/ki7OAOBQhw1aE7X4KQr35p4q3MkrYXq460lBQpit+CE3s3yJ EgxeWx1jFT/lAXDsZLO8BIGKYlg2cDaJWL8yG+yu0ZYW2zK4A1kHh1bbOsqkHT+q0aVr O4mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=k3aPelvksG7Dd9zWdqlGhSnmSXk+Wnv0ZCgCIZwJ+f0=; b=KbzOkWbvpPjGhm82VghU+K/1nkyN03yEcsRbEICeYHE87zW7pAbQo7KYORDmr5PASk CVvVxtCw5kW/3q6nu9KEGpothfdryJNO7NJOmw8bp5BzydR0xMPK1zI3LvtImNevXduw EOtuA9dQ1PSOBpUPPXOLJ5pTsFY+XNwRl9DzsSKw2Ff/Tb1ODu6vPxJ+NTbA9WjDCDfP MWoxENTFX5nVaLbFLB/9j6jkp9FTDAO7ZuDF/wVwGoPKbzI12qGP/BSvAaMuLRhfQe61 xNdi3kmrBu7iOMGF0AJZhOKB4+z69eib7jvMYljv2bI9s5/Nhqvin6zw10Y2N1Cgvs6n thdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a509e8f000000b00447cf741e33si3567632edf.496.2022.09.03.12.09.04; Sat, 03 Sep 2022 12:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232356AbiICS4x (ORCPT + 99 others); Sat, 3 Sep 2022 14:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231905AbiICS4v (ORCPT ); Sat, 3 Sep 2022 14:56:51 -0400 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0124253039; Sat, 3 Sep 2022 11:56:50 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-344fc86d87cso27557807b3.3; Sat, 03 Sep 2022 11:56:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=k3aPelvksG7Dd9zWdqlGhSnmSXk+Wnv0ZCgCIZwJ+f0=; b=vhhAQ9FNyO4opvCLoP2haEVN56bifwAxFQgNNv1XUWINxmSN8IoEu33k+R4oE4fwtx 2HjzNNyI5yEu+WJf4GkMjFv2LV1tPAxfnCbnmbBo5CKMxwY4tq6CVVG8WNL/ZrXVs2se iVBTHbEI8dxdcXELqoxlTlxWEqc4fRt3s4gMedrpj75GhvONaC/BxNW0kWBSUbW+kam/ UiLBlH4imqwCi8338UzOuUCQZuHmlab7ILc8BYBoHV8iepmdHiR072L2te/Wtp90nT2F IIf2/j0e8J3VoVjQ0o2nc0YakfRI+zqDGPFi7hdkmLyksRBHl0UpjkAyzctrBpPznWRU iJgw== X-Gm-Message-State: ACgBeo2uMkwbiG8tjPhMo/oK2gu/poKU3wcb1tHo4U70ViRaa3BC1Z+z a+mMElIktMea5K/QR1OCTizStuci2SBXj8DBBD3//mS5 X-Received: by 2002:a0d:da83:0:b0:329:9c04:fe6d with SMTP id c125-20020a0dda83000000b003299c04fe6dmr32687635ywe.196.1662231409261; Sat, 03 Sep 2022 11:56:49 -0700 (PDT) MIME-Version: 1.0 References: <1662026651-172787-1-git-send-email-john.garry@huawei.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Sat, 3 Sep 2022 20:56:37 +0200 Message-ID: Subject: Re: [PATCH] ACPI: platform: Use PLATFORM_DEVID_NONE in acpi_create_platform_device() To: Andy Shevchenko , John Garry Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" 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_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, Sep 1, 2022 at 12:25 PM Andy Shevchenko wrote: > > On Thu, Sep 1, 2022 at 1:10 PM John Garry wrote: > > > > Instead of hardcoding the value for the id, use PLATFORM_DEVID_NONE. > > Reviewed-by: Andy Shevchenko > > > Signed-off-by: John Garry > > > > diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c > > index de3cbf152dee..d33334c9b8e5 100644 > > --- a/drivers/acpi/acpi_platform.c > > +++ b/drivers/acpi/acpi_platform.c > > @@ -140,7 +140,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev, > > pdevinfo.parent = adev->parent ? > > acpi_get_first_physical_node(adev->parent) : NULL; > > pdevinfo.name = dev_name(&adev->dev); > > - pdevinfo.id = -1; > > + pdevinfo.id = PLATFORM_DEVID_NONE; > > pdevinfo.res = resources; > > pdevinfo.num_res = count; > > pdevinfo.fwnode = acpi_fwnode_handle(adev); > > -- Applied as 6.1 material, thanks!