Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2020597pxb; Sat, 28 Aug 2021 02:01:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJBrhMKH/1yvx7+76mDcVTYNQ2v/1gjglL7hn92NdgflleXYRxsm8QQrw8ZzlBCnJhD12b X-Received: by 2002:a5d:9655:: with SMTP id d21mr10516038ios.111.1630141291628; Sat, 28 Aug 2021 02:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630141291; cv=none; d=google.com; s=arc-20160816; b=jtPFbLiT8i9qiKDCeW/UubmK5Bv0BcYE1/PA1DGOeY4phHI+N32PjUny03Gi2jikWl MqTO863rm+SuAc7ywSKbV2kOMJhupr5p+Cz+AvVfkNE7QA98CcdrzhO9ATRm9ZOQTVMb 46nILeumUwnWLnq39e1C48oOOZrmwjB2hKIaDqVl1roHlDgq/rbXjiT649j98Y9tNsL0 gkwPUKMZmJGSFXpc8eImTyQCFnZRu6N3K820uVZQGpPlYC4Hqadc9ePUkM2ni6CEVrqE IQcggXgS2nbrVTNnE9sp6yuT8VHdPqqlGMl2fS6zgml0CsUMVcnbkXqV4tBDOQVWBBVg D12g== 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=tXp2wBq6PiKlZiQqSvl+TF0ZjPnyMMc8Sichmq37nIU=; b=l0m0oziDTuHBct/9mObQrTcPEF5ptR6VJgqXlSRJB2Ihvb2rMdC+FsX/dg5GIj8hnE okEGFCEt5+D/BSvXC3HPWcEJLFyeEwrlYSLaaCc5tojCMb9zT6wqHvhB+UM8qSBVayoS ec0ToNPSH6nJUHt7QFuVWoiQGh63Y9QNGyW2mi9KMpTOqJJv6CaT46jygqVMD/s74Yqm pJTkT10H24S2mEPtUtxOaNUpC+jhZLhU7xNjcIZS6k2YK5MPjVHieRj4VxjRevQHl2/j +1yj8qpf3ghwyxwUl2aYZPwZ0P9rD0uvgGHkGCPhqO7a/rqwBn0XcTJmBSPdBUSw+0QK SZmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si8139804ilq.77.2021.08.28.02.01.19; Sat, 28 Aug 2021 02:01:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233570AbhH1JB2 (ORCPT + 99 others); Sat, 28 Aug 2021 05:01:28 -0400 Received: from mx20.baidu.com ([111.202.115.85]:57088 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233446AbhH1JB1 (ORCPT ); Sat, 28 Aug 2021 05:01:27 -0400 Received: from BC-Mail-EX04.internal.baidu.com (unknown [172.31.51.44]) by Forcepoint Email with ESMTPS id 3333A810093D2B3B40A7; Sat, 28 Aug 2021 17:00:36 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-EX04.internal.baidu.com (172.31.51.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Sat, 28 Aug 2021 17:00:36 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.62.11) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 28 Aug 2021 17:00:35 +0800 From: Cai Huoqing To: CC: , Cai Huoqing Subject: [PATCH] pcmcia: Make use of the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() Date: Sat, 28 Aug 2021 17:00:11 +0800 Message-ID: <20210828090011.635-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.31.62.11] X-ClientProxiedBy: BC-Mail-Ex11.internal.baidu.com (172.31.51.51) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the helper macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() instead of the verbose operators ".suspend_noirq /.resume_noirq/.freeze_noirq/ .thaw_noirq/.poweroff_noirq/.restore_noirq", because the SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() is a nice helper macro that could be brought in to make code a little clearer, a little more concise. Signed-off-by: Cai Huoqing --- drivers/pcmcia/yenta_socket.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 84bfc0e85d6b..e472da29d401 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c @@ -1342,12 +1342,7 @@ static int yenta_dev_resume_noirq(struct device *dev) } static const struct dev_pm_ops yenta_pm_ops = { - .suspend_noirq = yenta_dev_suspend_noirq, - .resume_noirq = yenta_dev_resume_noirq, - .freeze_noirq = yenta_dev_suspend_noirq, - .thaw_noirq = yenta_dev_resume_noirq, - .poweroff_noirq = yenta_dev_suspend_noirq, - .restore_noirq = yenta_dev_resume_noirq, + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(yenta_dev_suspend_noirq, yenta_dev_resume_noirq) }; #define YENTA_PM_OPS (¥ta_pm_ops) -- 2.25.1