From patchwork Tue Jun 1 06:50:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 451357 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1492397jao; Mon, 31 May 2021 23:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoUzfMQE0U05y3F+poZGZF/n628/ZPLiBCnpEpOS8i5MmtyznanHt78XhDySNaz3gA48/M X-Received: by 2002:a02:335c:: with SMTP id k28mr251960jak.4.1622530242330; Mon, 31 May 2021 23:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622530242; cv=none; d=google.com; s=arc-20160816; b=rxRtfirZ33bo/CeWcpqkIwKIlGfq1B4rrw87CFbbKCdCOB6ZarT5bQeTZm5WIogD6k XE64YKInLq7RgPrN+wZ9JEpMC/cULvrWf7Hihm3Qvx1pnXtiHtW4Yd2bjSNQzmxDn3OW Xb6U1md15FS06wRo7OgdtfpqkP32zeIWKQ8YKiQEjv8rJxmOS0UGd33M84YvfGdFBC16 yWbNbXSQHk6wpEEt/XPsLdh1LBn7m3I/GeUvqg1j/3s/yhlCAGo6aLu6whu6pgIbfZPU kWjrb82bxqF/cni2FbqwpPyx+VSf12dk33sqzjgfrzMianEyGhw9kSmUYioQkqIKiKCz +dUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=aPoCqN9l/ks+hrpAPZ3w6psSMzEfFb9GGUCtjTZ9UM0=; b=ojDLzByiIpk7iHj1V4KNK3JTy8qFHHuwkA4L/AIS8CZ6Qu7/f7EKc/IShHd4rkLdxd 78/JjWDu+BohUQWCxU0obVVkoylyUEx54uk8L8zJA+Th0WNAUnpAZbkhLKjF0SNkLk8V AJ8WZ6U75ATMVBTvWyr91zSxIXYMEnos85YWnZyfijycHExL26MLjTmXMObK4TtIITXd e3zuOvj9/XO2MjazjfstlS3+LSg4nWAhLyppBoDq5YmKP4w+yIyB0Ic/bhpTMjJTErY0 oDu5uF6V1uUk5J98N/Su9fRRNfpOevakkJbd6gAyDlLLgkgafZMg87SljQaPTiuiSWTQ M1cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si16171398iof.89.2021.05.31.23.50.42; Mon, 31 May 2021 23:50:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232869AbhFAGwW (ORCPT + 4 others); Tue, 1 Jun 2021 02:52:22 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3486 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbhFAGwV (ORCPT ); Tue, 1 Jun 2021 02:52:21 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FvN5R5Lz4zYrx3; Tue, 1 Jun 2021 14:47:55 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 14:50:39 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 14:50:38 +0800 From: Zhen Lei To: "Rafael J . Wysocki" , Len Brown , linux-acpi , linux-kernel CC: Zhen Lei Subject: [PATCH 1/1] ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code Date: Tue, 1 Jun 2021 14:50:32 +0800 Message-ID: <20210601065032.10042-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org No functional change. Signed-off-by: Zhen Lei --- drivers/acpi/osl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 327e1b4eb6b096f..f40d34776a3528c 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1487,12 +1487,7 @@ EXPORT_SYMBOL(acpi_check_resource_conflict); int acpi_check_region(resource_size_t start, resource_size_t n, const char *name) { - struct resource res = { - .start = start, - .end = start + n - 1, - .name = name, - .flags = IORESOURCE_IO, - }; + struct resource res = DEFINE_RES_IO_NAMED(start, n, name); return acpi_check_resource_conflict(&res); }