Skip to content

Commit 120f4aa

Browse files
LiBaokun96rafaeljw
authored andcommitted
ACPI: NVS: fix doc warnings in nvs.c
Fixes the following W=1 kernel build warning(s): drivers/acpi/nvs.c:94: warning: Function parameter or member 'start' not described in 'suspend_nvs_register' drivers/acpi/nvs.c:94: warning: Function parameter or member 'size' not described in 'suspend_nvs_register' Signed-off-by: Baokun Li <[email protected]> [ rjw: Subject edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 237a47e commit 120f4aa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

drivers/acpi/nvs.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ struct nvs_page {
8282
static LIST_HEAD(nvs_list);
8383

8484
/**
85-
* suspend_nvs_register - register platform NVS memory region to save
86-
* @start - physical address of the region
87-
* @size - size of the region
85+
* suspend_nvs_register - register platform NVS memory region to save
86+
* @start: Physical address of the region.
87+
* @size: Size of the region.
8888
*
89-
* The NVS region need not be page-aligned (both ends) and we arrange
90-
* things so that the data from page-aligned addresses in this region will
91-
* be copied into separate RAM pages.
89+
* The NVS region need not be page-aligned (both ends) and we arrange
90+
* things so that the data from page-aligned addresses in this region will
91+
* be copied into separate RAM pages.
9292
*/
9393
static int suspend_nvs_register(unsigned long start, unsigned long size)
9494
{
@@ -123,7 +123,7 @@ static int suspend_nvs_register(unsigned long start, unsigned long size)
123123
}
124124

125125
/**
126-
* suspend_nvs_free - free data pages allocated for saving NVS regions
126+
* suspend_nvs_free - free data pages allocated for saving NVS regions
127127
*/
128128
void suspend_nvs_free(void)
129129
{
@@ -147,7 +147,7 @@ void suspend_nvs_free(void)
147147
}
148148

149149
/**
150-
* suspend_nvs_alloc - allocate memory necessary for saving NVS regions
150+
* suspend_nvs_alloc - allocate memory necessary for saving NVS regions
151151
*/
152152
int suspend_nvs_alloc(void)
153153
{
@@ -164,7 +164,7 @@ int suspend_nvs_alloc(void)
164164
}
165165

166166
/**
167-
* suspend_nvs_save - save NVS memory regions
167+
* suspend_nvs_save - save NVS memory regions
168168
*/
169169
int suspend_nvs_save(void)
170170
{
@@ -193,10 +193,10 @@ int suspend_nvs_save(void)
193193
}
194194

195195
/**
196-
* suspend_nvs_restore - restore NVS memory regions
196+
* suspend_nvs_restore - restore NVS memory regions
197197
*
198-
* This function is going to be called with interrupts disabled, so it
199-
* cannot iounmap the virtual addresses used to access the NVS region.
198+
* This function is going to be called with interrupts disabled, so it
199+
* cannot iounmap the virtual addresses used to access the NVS region.
200200
*/
201201
void suspend_nvs_restore(void)
202202
{

0 commit comments

Comments
 (0)