Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp379492lqc; Thu, 7 Mar 2024 23:20:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqrxpHj9SkWZnFA7HXsL5DP3lQoJGMhuL8rvsdW6RgTk8onNdJ1ntBnvKUWiqP8SnY9Q3ysKUuEHZ1IS8t0Yw72mhtZPOLQRwAnek9EA== X-Google-Smtp-Source: AGHT+IEy3iE7SOekR9XyrqNG4sjIKjw/QB4P9jLzeLnWQrnC45tGl7/PC0C4zYUgFw5UvS/ZD5iE X-Received: by 2002:a17:906:fb0c:b0:a45:b2bc:3157 with SMTP id lz12-20020a170906fb0c00b00a45b2bc3157mr5519243ejb.23.1709882449034; Thu, 07 Mar 2024 23:20:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709882449; cv=pass; d=google.com; s=arc-20160816; b=fid62xEaV2BFU7sCzm6KFzXEMliKZPqXaBwoVsgG0bEqcoyKrjQEsAa9OdnZaiIfbm +oFcf0J0cEOnWzo9Lqnpd/EM9p//Rv4eFQ+7sUuhQPbz1vhGzvqdRsryo5y1SOyGnfd1 8TCbGrAniV2xWrEBP+VhgwAsboQOD0mU5qlqTrjz41uqJ6K2fRL/IuOdjcc3TgP0avlM pUOF8e44Juw8MEn5/drGbDYMVfUk7sHK7NjNcWW8PatNawz4GNVPJbwBU8JNFqSPA/Cx +UZZ2PY9V/nEFCM6ZmBWvwAgZpS0T36adM8HtakdujDOhq12Wk4A/oEzgK9FObCdrwqh 7dcw== 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=sore9SltRzniIBmsB1VRaVO6lEzW9PUjGtyywAUpNBM=; fh=30q4/yC0A72gmdTInOTv1c0DFSk9E2WLL8GP2dL2yUA=; b=jU0f5w7jvsk5TvuriWj02CUMNUCUiI8/VbO8JYelgBdnglhXXJhiMG19kFOXHu9k2R gQFeMSp6axxqdq4t6IjdRxuoni6pbBD6OrPECTXdKhAKdYQku9ekfj5Q/qXwTw/CunFn dtkDgHSGjR7j/VYr3zC4Fsn4vRI2D8+bHM2NVojeUTiHvoEIBPvqQSGW2xo2cE1rCc/E aNImU2FONvdiDno3l2QN+08VlTtI8UqqWaRlgcPNPxFEcyOqbrZKDh2b897sjuvfS9RB PGQHDoQcVTNFhHvXHRsXo2uGsBmLFuDNC0pTXYwRfLvwIgmMkwK3bQnyzvUXE/GrzLbW f1XA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=rDb2+2zg; 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-96574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96574-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id du16-20020a17090772d000b00a45d3c2d9f3si1160138ejc.500.2024.03.07.23.20.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 23:20:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=rDb2+2zg; 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-96574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96574-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C134D1F22C52 for ; Fri, 8 Mar 2024 07:20:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 437774EB50; Fri, 8 Mar 2024 07:20:42 +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="rDb2+2zg" Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (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 8EFE34EB41; Fri, 8 Mar 2024 07:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709882441; cv=none; b=l7fkRj1weyS1Fywl2CJhi7UbVnza16SX55ftMPeZNbbCvvZv1m/DZU0IjGrYBy6Gf+iv+8H8BdllJLmLI0l+lZoTbZD1xOmc0GSgpxcjYbyWTPsm/X3sy60oUyQwdfGtHPmrXXpMy2qNK8e9Gz4zyOHUTi6ugBpYBUZJBwhZAHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709882441; c=relaxed/simple; bh=1rMp09pt+DJziaOPTfngoZfnVNRH/uQtUHw0I3KJEa4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jg5avUgTo2PFHTRe61/AwtLlsLvFX7xxv9IP2abck9gM2yOuc0O/9Le0yzRynjsx/Lvhs7hENDXbERj7hfL5YfZzkMpNuzMuZnkmpDyIf4B1HmrGQa3SdTkmTaYkFuLo/elu3uOxdZ3VQn4/Y10d9vI4IeycMpGBcunrYHdSpGM= 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=rDb2+2zg; arc=none smtp.client-ip=115.124.30.97 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=1709882435; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=sore9SltRzniIBmsB1VRaVO6lEzW9PUjGtyywAUpNBM=; b=rDb2+2zgQAmUdjXIrDp7UZ09F7qHo1hPD6/TTjad+fDzNE+8ZzpmDeGQJrzsK63Jf3BokZi8/8Ckit3zO7v9uQ6MBIpFDemkvdNFp6ipA6GXpoSCHS+7mZzM5MjHFaBtjOKgdF4ZxlyM19xQnRBlrQiDKaZxyoxE6z1qLgMUK80= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0W21q8eo_1709882434; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W21q8eo_1709882434) by smtp.aliyun-inc.com; Fri, 08 Mar 2024 15:20:34 +0800 From: Yang Li To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] ACPI: Add kernel-doc comments for ACPI suspend and hibernation functions Date: Fri, 8 Mar 2024 15:20:33 +0800 Message-Id: <20240308072033.116556-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 --- 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