|
Tomas Bzatek |
aa9c0e |
From 961606f0d0547c3eebd47b79c363ab28c95a94ea Mon Sep 17 00:00:00 2001
|
|
Tomas Bzatek |
aa9c0e |
From: Martin Belanger <martin.belanger@dell.com>
|
|
Tomas Bzatek |
aa9c0e |
Date: Fri, 14 Apr 2023 11:19:23 -0400
|
|
Tomas Bzatek |
aa9c0e |
Subject: [PATCH 15/18] NBFT: Remove documentation from nbft.c since it's also
|
|
Tomas Bzatek |
aa9c0e |
in nbft.h
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
Also, replace nbft_free() by nvme_nbft_free() in documentation
|
|
Tomas Bzatek |
aa9c0e |
found in nbft.h.
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
Signed-off-by: Martin Belanger <martin.belanger@dell.com>
|
|
Tomas Bzatek |
aa9c0e |
---
|
|
Tomas Bzatek |
aa9c0e |
src/nvme/nbft.c | 15 ---------------
|
|
Tomas Bzatek |
aa9c0e |
src/nvme/nbft.h | 2 +-
|
|
Tomas Bzatek |
aa9c0e |
2 files changed, 1 insertion(+), 16 deletions(-)
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
diff --git a/src/nvme/nbft.c b/src/nvme/nbft.c
|
|
Tomas Bzatek |
aa9c0e |
index a085768..a1e17cd 100644
|
|
Tomas Bzatek |
aa9c0e |
--- a/src/nvme/nbft.c
|
|
Tomas Bzatek |
aa9c0e |
+++ b/src/nvme/nbft.c
|
|
Tomas Bzatek |
aa9c0e |
@@ -626,10 +626,6 @@ static int parse_raw_nbft(struct nbft_info *nbft)
|
|
Tomas Bzatek |
aa9c0e |
return 0;
|
|
Tomas Bzatek |
aa9c0e |
}
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
-/**
|
|
Tomas Bzatek |
aa9c0e |
- * nvme_nbft_free() - Free the struct nbft_info and its contents
|
|
Tomas Bzatek |
aa9c0e |
- * @nbft: Parsed NBFT table data.
|
|
Tomas Bzatek |
aa9c0e |
- */
|
|
Tomas Bzatek |
aa9c0e |
void nvme_nbft_free(struct nbft_info *nbft)
|
|
Tomas Bzatek |
aa9c0e |
{
|
|
Tomas Bzatek |
aa9c0e |
struct nbft_info_hfi **hfi;
|
|
Tomas Bzatek |
aa9c0e |
@@ -656,17 +652,6 @@ void nvme_nbft_free(struct nbft_info *nbft)
|
|
Tomas Bzatek |
aa9c0e |
free(nbft);
|
|
Tomas Bzatek |
aa9c0e |
}
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
-/**
|
|
Tomas Bzatek |
aa9c0e |
- * nvme_nbft_read() - Read and parse contents of an ACPI NBFT table
|
|
Tomas Bzatek |
aa9c0e |
- *
|
|
Tomas Bzatek |
aa9c0e |
- * @nbft: Parsed NBFT table data.
|
|
Tomas Bzatek |
aa9c0e |
- * @filename: Filename of the raw NBFT table to read.
|
|
Tomas Bzatek |
aa9c0e |
- *
|
|
Tomas Bzatek |
aa9c0e |
- * Read and parse the specified NBFT file into a struct nbft_info.
|
|
Tomas Bzatek |
aa9c0e |
- * Free with nvme_nbft_free().
|
|
Tomas Bzatek |
aa9c0e |
- *
|
|
Tomas Bzatek |
aa9c0e |
- * Return: 0 on success, errno otherwise.
|
|
Tomas Bzatek |
aa9c0e |
- */
|
|
Tomas Bzatek |
aa9c0e |
int nvme_nbft_read(struct nbft_info **nbft, const char *filename)
|
|
Tomas Bzatek |
aa9c0e |
{
|
|
Tomas Bzatek |
aa9c0e |
__u8 *raw_nbft = NULL;
|
|
Tomas Bzatek |
aa9c0e |
diff --git a/src/nvme/nbft.h b/src/nvme/nbft.h
|
|
Tomas Bzatek |
aa9c0e |
index c3caa85..6012e16 100644
|
|
Tomas Bzatek |
aa9c0e |
--- a/src/nvme/nbft.h
|
|
Tomas Bzatek |
aa9c0e |
+++ b/src/nvme/nbft.h
|
|
Tomas Bzatek |
aa9c0e |
@@ -1223,7 +1223,7 @@ struct nbft_info {
|
|
Tomas Bzatek |
aa9c0e |
* @filename: Filename of the raw NBFT table to read.
|
|
Tomas Bzatek |
aa9c0e |
*
|
|
Tomas Bzatek |
aa9c0e |
* Read and parse the specified NBFT file into a struct nbft_info.
|
|
Tomas Bzatek |
aa9c0e |
- * Free with nbft_free().
|
|
Tomas Bzatek |
aa9c0e |
+ * Free with nvme_nbft_free().
|
|
Tomas Bzatek |
aa9c0e |
*
|
|
Tomas Bzatek |
aa9c0e |
* Return: 0 on success, errno otherwise.
|
|
Tomas Bzatek |
aa9c0e |
*/
|
|
Tomas Bzatek |
aa9c0e |
--
|
|
Tomas Bzatek |
aa9c0e |
2.39.2
|
|
Tomas Bzatek |
aa9c0e |
|