mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
smbios: Move smbios_write_type to the C file
This type is not used outside the smbios.c file so there is no need for it to be in the header file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
68f6a90ec2
commit
0e89b85906
|
@ -219,16 +219,6 @@ static inline void fill_smbios_header(void *table, int type,
|
|||
header->handle = handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function prototype to write a specific type of SMBIOS structure
|
||||
*
|
||||
* @addr: start address to write the structure
|
||||
* @handle: the structure's handle, a unique 16-bit number
|
||||
* @node: node containing the information to write (ofnode_null() if none)
|
||||
* @return: size of the structure
|
||||
*/
|
||||
typedef int (*smbios_write_type)(ulong *addr, int handle, ofnode node);
|
||||
|
||||
/**
|
||||
* write_smbios_table() - Write SMBIOS table
|
||||
*
|
||||
|
|
10
lib/smbios.c
10
lib/smbios.c
|
@ -17,6 +17,16 @@
|
|||
#include <dm/uclass-internal.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Function prototype to write a specific type of SMBIOS structure
|
||||
*
|
||||
* @addr: start address to write the structure
|
||||
* @handle: the structure's handle, a unique 16-bit number
|
||||
* @node: node containing the information to write (ofnode_null() if none)
|
||||
* @return: size of the structure
|
||||
*/
|
||||
typedef int (*smbios_write_type)(ulong *addr, int handle, ofnode node);
|
||||
|
||||
/**
|
||||
* struct smbios_write_method - Information about a table-writing function
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user