vc/siemens/hwilib: Fix coding style
As per the code style there is no space before the opening brace of a function declaration. Delete the space in hwilib.c and hwilib.h. Change-Id: Ie122ccd2dbae97f595463a097826d3415718a8bc Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72044 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2b01e97c6f
commit
9a8e119110
|
@ -71,7 +71,7 @@ static uint16_t all_blk_size[MAX_BLOCK_NUM];
|
||||||
static char current_hwi[HWI_MAX_NAME_LEN];
|
static char current_hwi[HWI_MAX_NAME_LEN];
|
||||||
|
|
||||||
|
|
||||||
static uint32_t hwilib_read_bytes (const struct param_info *param, uint8_t *dst,
|
static uint32_t hwilib_read_bytes(const struct param_info *param, uint8_t *dst,
|
||||||
uint32_t maxlen);
|
uint32_t maxlen);
|
||||||
|
|
||||||
/* Add all supported fields to this variable. It is important to use the
|
/* Add all supported fields to this variable. It is important to use the
|
||||||
|
@ -387,7 +387,7 @@ static const struct param_info params[] = {
|
||||||
* @param *dst Pointer to memory where the data will be stored in
|
* @param *dst Pointer to memory where the data will be stored in
|
||||||
* @return number of copied bytes on success, 0 on error
|
* @return number of copied bytes on success, 0 on error
|
||||||
*/
|
*/
|
||||||
static uint32_t hwilib_read_bytes (const struct param_info *param, uint8_t *dst,
|
static uint32_t hwilib_read_bytes(const struct param_info *param, uint8_t *dst,
|
||||||
uint32_t maxlen)
|
uint32_t maxlen)
|
||||||
{
|
{
|
||||||
uint8_t i = 0, *blk = NULL;
|
uint8_t i = 0, *blk = NULL;
|
||||||
|
@ -452,7 +452,7 @@ static uint32_t hwilib_read_bytes (const struct param_info *param, uint8_t *dst,
|
||||||
* @param *hwi_filename Name of the cbfs-file to use.
|
* @param *hwi_filename Name of the cbfs-file to use.
|
||||||
* @return CB_SUCCESS when no error, otherwise error code
|
* @return CB_SUCCESS when no error, otherwise error code
|
||||||
*/
|
*/
|
||||||
enum cb_err hwilib_find_blocks (const char *hwi_filename)
|
enum cb_err hwilib_find_blocks(const char *hwi_filename)
|
||||||
{
|
{
|
||||||
uint8_t *ptr = NULL, *base = NULL;
|
uint8_t *ptr = NULL, *base = NULL;
|
||||||
uint32_t next_offset = 1;
|
uint32_t next_offset = 1;
|
||||||
|
@ -543,7 +543,7 @@ enum cb_err hwilib_find_blocks (const char *hwi_filename)
|
||||||
* @param *dst Pointer to memory where the data will be stored in
|
* @param *dst Pointer to memory where the data will be stored in
|
||||||
* @return number of copied bytes on success, 0 on error
|
* @return number of copied bytes on success, 0 on error
|
||||||
*/
|
*/
|
||||||
uint32_t hwilib_get_field (hwinfo_field_t field, uint8_t *dst, uint32_t maxlen)
|
uint32_t hwilib_get_field(hwinfo_field_t field, uint8_t *dst, uint32_t maxlen)
|
||||||
{
|
{
|
||||||
/* Check the boundaries of params-variable */
|
/* Check the boundaries of params-variable */
|
||||||
if ((uint32_t)field < ARRAY_SIZE(params))
|
if ((uint32_t)field < ARRAY_SIZE(params))
|
||||||
|
|
|
@ -118,11 +118,11 @@ typedef enum {
|
||||||
/* Use this function to find all supported blocks in cbfs. It must be called
|
/* Use this function to find all supported blocks in cbfs. It must be called
|
||||||
* once with a valid cbfs file name before hwilib_get_field() can be used.
|
* once with a valid cbfs file name before hwilib_get_field() can be used.
|
||||||
*/
|
*/
|
||||||
enum cb_err hwilib_find_blocks (const char *hwi_filename);
|
enum cb_err hwilib_find_blocks(const char *hwi_filename);
|
||||||
|
|
||||||
/* Use this function to get fields out of supported info blocks
|
/* Use this function to get fields out of supported info blocks
|
||||||
* This function returns the number of copied bytes or 0 on error.
|
* This function returns the number of copied bytes or 0 on error.
|
||||||
*/
|
*/
|
||||||
uint32_t hwilib_get_field (hwinfo_field_t field, uint8_t *data, uint32_t maxlen);
|
uint32_t hwilib_get_field(hwinfo_field_t field, uint8_t *data, uint32_t maxlen);
|
||||||
|
|
||||||
#endif /* SIEMENS_HWI_LIB_H_ */
|
#endif /* SIEMENS_HWI_LIB_H_ */
|
||||||
|
|
Loading…
Reference in New Issue