diff options
Diffstat (limited to 'src/vendorcode/siemens')
-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_ */ |