diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2023-01-17 14:45:25 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-01-18 22:03:01 +0000 |
commit | 9a8e1191108cbd0c4099a44cbd9e8fe643397204 (patch) | |
tree | a1bbb7e972ef070d0c0a6980a1fcc18d6fc50aa3 /src | |
parent | 2b01e97c6ffa74db63b030fe28b2679d1301832a (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/vendorcode/siemens/hwilib/hwilib.c | 8 | ||||
-rw-r--r-- | src/vendorcode/siemens/hwilib/hwilib.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/vendorcode/siemens/hwilib/hwilib.c b/src/vendorcode/siemens/hwilib/hwilib.c index 4bfd36b241..240774926f 100644 --- a/src/vendorcode/siemens/hwilib/hwilib.c +++ b/src/vendorcode/siemens/hwilib/hwilib.c @@ -71,7 +71,7 @@ static uint16_t all_blk_size[MAX_BLOCK_NUM]; 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); /* 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 * @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) { 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. * @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; 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 * @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 */ if ((uint32_t)field < ARRAY_SIZE(params)) diff --git a/src/vendorcode/siemens/hwilib/hwilib.h b/src/vendorcode/siemens/hwilib/hwilib.h index 1f418cac75..16df4301ab 100644 --- a/src/vendorcode/siemens/hwilib/hwilib.h +++ b/src/vendorcode/siemens/hwilib/hwilib.h @@ -118,11 +118,11 @@ typedef enum { /* 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. */ -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 * 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_ */ |