Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp525084rwe; Thu, 1 Sep 2022 03:48:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YsINlHe7yd8UFZ42VzMUV4HMOxA7ZGHXOdzHM2ymD3FGsIIzMxMPnde0FBG+1iJl7IPNc X-Received: by 2002:a17:907:75c9:b0:73d:c6b2:538c with SMTP id jl9-20020a17090775c900b0073dc6b2538cmr23040880ejc.432.1662029313949; Thu, 01 Sep 2022 03:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662029313; cv=none; d=google.com; s=arc-20160816; b=SnP9EHU3jLCNJgppqjGbmNOvIlSy9opyoaxbWjSX4ldoZ3Kv2JO23bTxwOBIgij+BL pNCZut289NkfXWAneMqNqF9orGVL+b2NZaSpB7alOkgRULFCRDLwK7ZrDuNCYEUNWBYr 8jaoJqCwi+xQInk1ITG75IU3Bv3IRbUElHN14A+Ndaz7wkG8YTg6B9HYKBFwNc0FisN6 nwKlap+6tt7ebbvxkBZNnJQjwS2lchFt8RuFNLIqb+HyyabTvEjk7zpAD5mnvhqAfzMj GIG2Wlp/4zhtdL7VvxVq0hMpaRRmt3zqPGvPXC+A2BRtAHWgCVavlSEqjPPKeTa4ImKe UCMg== 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:dkim-signature; bh=K1bm7RyualIZm4tI11MDvsJjpqUlKFhuZrCU2vFAKkk=; b=Y8IzQ0/o7uKMIshJy8fgiYSgrACP9bCE1l3lrNrxJw8jULoRW6ndEaTPmAxeto1EgZ EpmwzSsiVY7/pyZiDXbAWMsSQ87+wdFnW8ws1qthZ1eKzQPwtFPCCQ3jnthM3FjYGCvO riOSBRG9duzwPU70MsBjVs+8QAV+HX22KBcxz64amnVaY0J3VvcTaFlMjfl9tvpdWpmP hjmDz6DlcgKsfY5YyTEj4ngfHcahK5xQAaldRpQKeqWoio1i4/tGF/JVP67l0Keo9fgY vKqJ+3fVv+/IJF9kvbmMtFeq5nJFEZctUS1FzgqhUTuQCzuWnZi+0V+07tdEUNth3LcZ oJzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R3NXH2z7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pk4-20020a170906d7a400b0072b0303a11asi11255019ejb.955.2022.09.01.03.48.05; Thu, 01 Sep 2022 03:48:33 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R3NXH2z7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234163AbiIAKZf (ORCPT + 99 others); Thu, 1 Sep 2022 06:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234011AbiIAKZb (ORCPT ); Thu, 1 Sep 2022 06:25:31 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31864220F9; Thu, 1 Sep 2022 03:25:18 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id s22so10340923qkj.3; Thu, 01 Sep 2022 03:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=K1bm7RyualIZm4tI11MDvsJjpqUlKFhuZrCU2vFAKkk=; b=R3NXH2z7BmO8Qy6LRoJTRWNd8ulKppFQgGgiTrZ770S0MuMBV1Yef0Dpx/KQYBEYGO UCtyeN5BluAgjvE98z2xPe4utvK6CYNuswjnMcQPdCsIyVfYZg6e8ULRpTUmNb8KDEyn M1eyBpzdU6hZQPj2CIrjHWqjn8Wnv4zWDldUsmaLkUQndMcf8WIQV5fIVQ07LVSeJcq7 KFBPrF1S3g6qrsrpD+zSpCrGnfAMkf/psKopIZQduLEcsmWRIb6z4T98+pwsPrQ6HKQ4 Wt2v/yLVqsV9z+gPKBg3jnE2ndbK6YjS8MkFIAx3VuRp6VoRKZ0LlWb2gp4eSQzgJGoq tA7A== 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=K1bm7RyualIZm4tI11MDvsJjpqUlKFhuZrCU2vFAKkk=; b=tCGR424Zsl1i1aUK9++laxVO6d80YEl0Hg89oOh7zvPHgzDUO2wOWB1fjswVEPDxdi vI1DSwcL9CBY9E38oBrF1XjZ/yCiRks3nyLjQAc3XZKfXOVyQxXcsAq9HbJ6VBBXJHmh dQxYA6O1a+R5JDLnagJCptPokpIyrVE/eCsuZsSmXY4jfnLcEyeJR3aupImJBXhrSSKT p+aJGAb9PofpsxLA0FWo0W71CJLrmH1HQWRdK2l3wVfsDvjJ1H9RdtIdiJT/zvuRW4oM 6nAhy+d2IQFWwhiEZHU8pXgnsJW5NUhMhtGMaWIPsoTY3GaDMU9H1i0UPKsgnZM6Gvsr q6CA== X-Gm-Message-State: ACgBeo2OKNp0dFAUqoxm7ESShLNONfbNMHy+4MYwhctrG4mbDPpuFS1o RKFYlYfNGshN9IDmcmntFj+o3VVzqFnDZ5zQWMDATlR+XHQ= X-Received: by 2002:ae9:e311:0:b0:6ba:e711:fb27 with SMTP id v17-20020ae9e311000000b006bae711fb27mr18887210qkf.320.1662027917242; Thu, 01 Sep 2022 03:25:17 -0700 (PDT) MIME-Version: 1.0 References: <1662026651-172787-1-git-send-email-john.garry@huawei.com> In-Reply-To: <1662026651-172787-1-git-send-email-john.garry@huawei.com> From: Andy Shevchenko Date: Thu, 1 Sep 2022 13:24:41 +0300 Message-ID: Subject: Re: [PATCH] ACPI: platform: Use PLATFORM_DEVID_NONE in acpi_create_platform_device() To: 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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); > -- > 2.35.3 > -- With Best Regards, Andy Shevchenko