Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp470242lqb; Thu, 14 Mar 2024 17:38:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXz+ul8/RRiLcb6nC6Dn0UZ4NOORu9RHyAcTvYZLU0zZybUFTSCZfA+s5Uih5xe/qj8+dak2KALmV3vK+Ikj1zweoBlnL5VL7d30OQtaA== X-Google-Smtp-Source: AGHT+IFDsenUVuCClZp3n+eMH/UHhDAuiLX8O0cKqQq2hj3yjdGF2h8x1dkEslKfv7EH1qLyzaMG X-Received: by 2002:a17:903:11d1:b0:1dd:73ba:cd7f with SMTP id q17-20020a17090311d100b001dd73bacd7fmr3756954plh.47.1710463089255; Thu, 14 Mar 2024 17:38:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710463089; cv=pass; d=google.com; s=arc-20160816; b=DO2xlHHGuprq7krk/uxRZGcGdr9icx+JORBsm06fPcKLgvrTunNU8DBv6dKsCNbuXz /G1KxJyVHVFaNSmWQSE43oBW1m8YSIeTPf2xvdk62lQ2rict+yQAms6KPsHQXYzTEBd7 78epxAaH2afiytY6YWLDu6oDK1ToQ9jkBSLlktfiukpakO4OmtZTWazUCC/X+/lMZNj1 KlvNE6kMkmHR8pLBoVrxPhaeF4RlYJ8GkybXpR8jEK7UK3he6DaW9eDOCn5k/xRZHGvO rYtVyIDV0uZDwjtElm7B5F0aHwT+M82u4ZEKzlRtYCkSa3FRv/4CWGFJ3krgmVcC6MEA kS9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8AwO9e/7WeeN+DMgRNE/AH1+WurQAlcji4grBC4mXDY=; fh=L9Lqub6NRRZd5zVDhnnn4o9mFxMfusywpk61ujj8EfQ=; b=RGB0u8ZNoiGmSjXNwYg+XjTdrSOqR64geBXz4h3mjVDGYm9F35WaGYf6L6zy1hpvak KlcAZ32cL9hBtIKh1N7iHw4US0F58zqxbD1FC0vLc/yZLwwPe5PrgJ6F1jE03prycDxq Dsk3UDtl0JUP9olIS2buEjQ3MB4uVOgC25CnSNXSr9KZUMYVzE0I3esk/U7hbUNLFRNl CI3OjISY/rwx6lQfCBMxZ1vjaHybHDoPLdEFI0iwqzkBqzutyfloAJPXT9jpubStgnIl X2fgvQDTMuuZfTL3zH+zt93K8XJpfGhVyqDzlo3SqWoKht2OZFrY5R5E8pHYx1oc/dBA jjKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=OMUB6LE6; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-103939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j5-20020a170903028500b001dcb3447cefsi2466668plr.167.2024.03.14.17.38.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 17:38:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=OMUB6LE6; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-103939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DAA2B282796 for ; Fri, 15 Mar 2024 00:38:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80DC3139D; Fri, 15 Mar 2024 00:38:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="OMUB6LE6" Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8E5119F; Fri, 15 Mar 2024 00:37:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710463082; cv=none; b=J3PrUCRVxKH7eUiXQGIekGKe+OuX7LIdOrxBpuipJLNopOd+q/IXm22FYFUHzcscOmMocVt8QhcXb7NT7gf8sM6yqdIlF69bTy7QWooakvuwySeotiKCiiCU5I+OBgcPtdUWJzsVV25O95UTs1ybxaejmsDVYMBmFkm2MYgz3qE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710463082; c=relaxed/simple; bh=O+aJPqb8PVSPpsoY82kSTGSpQw4eZ44xl2CPE2dgCSU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JQq3pLnGavTq1ppNFqBtTp0pgCtGA5JseUDswGSte4fbuiYhizPkcvXtITYf/vr0crhkyP1VcH8ev7v9o/16uGRxmGAJmiQNPddJICJADUHbAgT2qhtOrGsLBZRd/3659uzNPJsHcKdWmbjZejlUuHoGCSEr9ClMPQoVkMq0MYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=OMUB6LE6; arc=none smtp.client-ip=115.124.30.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1710463076; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=8AwO9e/7WeeN+DMgRNE/AH1+WurQAlcji4grBC4mXDY=; b=OMUB6LE6spFhHhqBu8clIh+gWOaXvI7tTLdwPmK40cFGqKC+ckUOP8uJD4UVE+2J92AVbUTlD8EnOdhp9nF5l4w07dvXl7AeMyArIULBgsc6uG0Ap2v+TH4SFNjSW1Y1jFbDCctQRVH0DM8Jv+SYNFupMfZlkBDtULP5KOGqT6I= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0W2U6Nu._1710463074; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W2U6Nu._1710463074) by smtp.aliyun-inc.com; Fri, 15 Mar 2024 08:37:55 +0800 From: Yang Li To: rafael@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next v2] ACPI: Add kernel-doc comments for ACPI suspend and hibernation functions Date: Fri, 15 Mar 2024 08:37:53 +0800 Message-Id: <20240315003753.96173-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch enhances the documentation for the ACPI power management functions related to system suspend and hibernation. This includes the use of kernel-doc style comments which provide developers with clearer guidance on the usage and expectations of these functions. Signed-off-by: Yang Li --- change in v2: --According to Randy's suggestion, use a space between '*' and function names, function parameters. drivers/acpi/sleep.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 728acfeb774d..5bc61f40c189 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c @@ -502,6 +502,7 @@ static void acpi_pm_finish(void) /** * acpi_pm_start - Start system PM transition. + * @acpi_state: The target ACPI power state to transition to. */ static void acpi_pm_start(u32 acpi_state) { @@ -540,8 +541,9 @@ static u32 acpi_suspend_states[] = { }; /** - * acpi_suspend_begin - Set the target system sleep state to the state - * associated with given @pm_state, if supported. + * acpi_suspend_begin - Set the target system sleep state to the state + * associated with given @pm_state, if supported. + * @pm_state: The target system power management state. */ static int acpi_suspend_begin(suspend_state_t pm_state) { @@ -671,10 +673,11 @@ static const struct platform_suspend_ops acpi_suspend_ops = { }; /** - * acpi_suspend_begin_old - Set the target system sleep state to the - * state associated with given @pm_state, if supported, and - * execute the _PTS control method. This function is used if the - * pre-ACPI 2.0 suspend ordering has been requested. + * acpi_suspend_begin_old - Set the target system sleep state to the + * state associated with given @pm_state, if supported, and + * execute the _PTS control method. This function is used if the + * pre-ACPI 2.0 suspend ordering has been requested. + * @pm_state: The target suspend state for the system. */ static int acpi_suspend_begin_old(suspend_state_t pm_state) { @@ -967,10 +970,11 @@ static const struct platform_hibernation_ops acpi_hibernation_ops = { }; /** - * acpi_hibernation_begin_old - Set the target system sleep state to - * ACPI_STATE_S4 and execute the _PTS control method. This - * function is used if the pre-ACPI 2.0 suspend ordering has been - * requested. + * acpi_hibernation_begin_old - Set the target system sleep state to + * ACPI_STATE_S4 and execute the _PTS control method. This + * function is used if the pre-ACPI 2.0 suspend ordering has been + * requested. + * @stage: The power management event message. */ static int acpi_hibernation_begin_old(pm_message_t stage) { -- 2.20.1.7.g153144c