src: Use "foo *bar" instead of "foo* bar"

Change-Id: Ib2bb6cc80ac2bdc389c60c7ffac4bba937f0fca8
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26461
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Elyes HAOUAS 2018-05-22 12:51:27 +02:00 committed by Patrick Georgi
parent 7154ef2fe1
commit 448d9fb431
17 changed files with 41 additions and 37 deletions

View File

@ -84,9 +84,9 @@ const char *heap_status_name(int status)
* 0x6 = AGESA_CRITICAL
* 0x7 = AGESA_FATAL
*/
static const char * decodeAGESA_STATUS(AGESA_STATUS sret)
static const char *decodeAGESA_STATUS(AGESA_STATUS sret)
{
const char* statusStrings[] = { "AGESA_SUCCESS", "AGESA_UNSUPPORTED",
const char *statusStrings[] = { "AGESA_SUCCESS", "AGESA_UNSUPPORTED",
"AGESA_BOUNDS_CHK", "AGESA_ALERT",
"AGESA_WARNING", "AGESA_ERROR",
"AGESA_CRITICAL", "AGESA_FATAL"

View File

@ -118,7 +118,8 @@ static const unsigned int ctrl_conf_enable_msi_mapping[] = {
RES_PCI_IO, PCI_ADDR(0, 0, 0, 0xe0), ~(0x00000000), 0x00010000, /* Enable MSI mapping on host bridge -- without this Linux cannot use the network device MSI interrupts! */
};
static void ck804_control(const unsigned int* values, u32 size, uint8_t bus_unit_id)
static void ck804_control(const unsigned int *values, u32 size,
uint8_t bus_unit_id)
{
unsigned busn[4], io_base[4];
int i, ck804_num = 0;

View File

@ -75,7 +75,7 @@ void mainboard_fill_rcomp_strength_data(void *rcomp_strength_ptr)
uintptr_t mainboard_get_spd_data(void)
{
char* spd_file;
char *spd_file;
int spd_index, spd_span;
size_t spd_file_len;

View File

@ -1040,7 +1040,8 @@ static void amdfam10_domain_scan_bus(struct device *dev)
}
#if IS_ENABLED(CONFIG_GENERATE_SMBIOS_TABLES)
static int amdfam10_get_smbios_data16(int* count, int handle, unsigned long *current)
static int amdfam10_get_smbios_data16(int *count, int handle,
unsigned long *current)
{
struct amdmct_memory_info *mem_info;
mem_info = cbmem_find(CBMEM_ID_AMDMCT_MEMINFO);
@ -1145,7 +1146,8 @@ static uint16_t amdmct_mct_speed_enum_to_mhz(uint8_t speed)
}
}
static int amdfam10_get_smbios_data17(int* count, int handle, int parent_handle, unsigned long *current)
static int amdfam10_get_smbios_data17(int *count, int handle, int parent_handle,
unsigned long *current)
{
struct amdmct_memory_info *mem_info;
mem_info = cbmem_find(CBMEM_ID_AMDMCT_MEMINFO);

View File

@ -168,7 +168,7 @@ typedef struct {
* @param[in] u8 node = The node on which this chain is located
* @param[in] u8 link = The link on the host for this chain
* @param[out] u8 secBus = Secondary Bus number for this non-coherent chain
* @param[out] u8* subBus = Subordinate Bus number
* @param[out] u8 *subBus = Subordinate Bus number
* @param[out] BOOL result = true this routine is supplying the bus numbers
* false use auto Bus numbering
*
@ -194,7 +194,7 @@ typedef struct {
* Parameters:
* @param[in] u8 node = The node on which this chain is located
* @param[in] u8 link = The link on the host for this chain
* @param[out] u8** list = supply a pointer to a list
* @param[out] u8 **list = supply a pointer to a list
* @param[out] BOOL result = true to use a manual list
* false to initialize the link automatically
*
@ -226,10 +226,10 @@ typedef struct {
* @param[in] u8 Dev = The Device's PCI device Number
* @param[in] u32 DevVenID = The Device's PCI Vendor + Device ID (offset 0x00)
* @param[in] u8 Link = The Device's link number (0 or 1)
* @param[in,out] u8* LinkWidthIn = modify to change the Link Witdh In
* @param[in,out] u8* LinkWidthOut = modify to change the Link Witdh Out
* @param[in,out] u32* FreqCap = modify to change the link's frequency capability
* @param[in,out] u32* FeatureCap = modify to change the link's feature capability
* @param[in,out] u8 *LinkWidthIn = modify to change the Link Witdh In
* @param[in,out] u8 *LinkWidthOut = modify to change the Link Witdh Out
* @param[in,out] u32 *FreqCap = modify to change the link's frequency capability
* @param[in,out] u32 *FeatureCap = modify to change the link's feature capability
*
* ---------------------------------------------------------------------------------------
*/
@ -266,9 +266,9 @@ typedef struct {
* @param[in] u8 linkA = The link on this node
* @param[in] u8 nodeB = The other node on which this link is located
* @param[in] u8 linkB = The link on that node
* @param[in,out] u8* ABLinkWidthLimit = modify to change the Link Witdh In
* @param[in,out] u8* BALinkWidthLimit = modify to change the Link Witdh Out
* @param[in,out] u32* PCBFreqCap = modify to change the link's frequency capability
* @param[in,out] u8 *ABLinkWidthLimit = modify to change the Link Witdh In
* @param[in,out] u8 *BALinkWidthLimit = modify to change the Link Witdh Out
* @param[in,out] u32 *PCBFreqCap = modify to change the link's frequency capability
*
* ---------------------------------------------------------------------------------------
*/
@ -299,9 +299,9 @@ typedef struct {
* @param[in] u8 hostNode = The node on which this link is located
* @param[in] u8 hostLink = The link about to be initialized
* @param[in] u8 Depth = The depth in the I/O chain from the Host
* @param[in,out] u8* DownstreamLinkWidthLimit = modify to change the Link Witdh In
* @param[in,out] u8* UpstreamLinkWidthLimit = modify to change the Link Witdh Out
* @param[in,out] u32* PCBFreqCap = modify to change the link's frequency capability
* @param[in,out] u8 *DownstreamLinkWidthLimit = modify to change the Link Witdh In
* @param[in,out] u8 *UpstreamLinkWidthLimit = modify to change the Link Witdh Out
* @param[in,out] u32 *PCBFreqCap = modify to change the link's frequency capability
*
* ---------------------------------------------------------------------------------------
*/
@ -400,9 +400,9 @@ typedef struct {
* @param[in] u8 hostLink = The link about to be initialized
* @param[in] u8 Depth = The depth in the I/O chain from the Host
* @param[in] u8 Link = the link on the device (0 or 1)
* @param[in,out] u8* LinkWidthIn = modify to change the Link Witdh In
* @param[in,out] u8* LinkWidthOut = modify to change the Link Witdh Out
* @param[in,out] u16* LinkFrequency = modify to change the link's frequency capability
* @param[in,out] u8 *LinkWidthIn = modify to change the Link Witdh In
* @param[in,out] u8 *LinkWidthOut = modify to change the Link Witdh Out
* @param[in,out] u16 *LinkFrequency = modify to change the link's frequency capability
*
* ---------------------------------------------------------------------------------------
*/
@ -431,9 +431,9 @@ typedef struct {
* Parameters:
* @param[in] u8 node = One node on which this link is located
* @param[in] u8 link = The link on this node
* @param[in,out] u8* LinkWidthIn = modify to change the Link Witdh In
* @param[in,out] u8* LinkWidthOut = modify to change the Link Witdh Out
* @param[in,out] u16* LinkFrequency = modify to change the link's frequency capability
* @param[in,out] u8 *LinkWidthIn = modify to change the Link Witdh In
* @param[in,out] u8 *LinkWidthOut = modify to change the Link Witdh Out
* @param[in,out] u16 *LinkFrequency = modify to change the link's frequency capability
*
*---------------------------------------------------------------------------------------
*/
@ -459,7 +459,7 @@ typedef struct {
* Parameters:
* @param[in] u8 evtClass = What level event is this
* @param[in] u16 event = A unique ID of this event
* @param[in] u8* pEventData0 = useful data associated with the event.
* @param[in] u8 *pEventData0 = useful data associated with the event.
*
* ---------------------------------------------------------------------------------------
*/

View File

@ -32,7 +32,7 @@
*/
static const char * decodeAGESA_STATUS(AGESA_STATUS sret)
{
const char* statusStrings[] = { "AGESA_SUCCESS", "AGESA_UNSUPPORTED",
const char *statusStrings[] = { "AGESA_SUCCESS", "AGESA_UNSUPPORTED",
"AGESA_BOUNDS_CHK", "AGESA_ALERT",
"AGESA_WARNING", "AGESA_ERROR",
"AGESA_CRITICAL", "AGESA_FATAL"

View File

@ -21,7 +21,7 @@
#include "raminit.h"
#include "northbridge.h"
static const char* ecc_decoder[] = {
static const char *ecc_decoder[] = {
"inactive",
"active on IO",
"disabled on IO",

View File

@ -62,7 +62,7 @@ static void prepare_mrc_cache(struct pei_data *pei_data)
__func__, pei_data->mrc_input, pei_data->mrc_input_len);
}
static const char* ecc_decoder[] = {
static const char *ecc_decoder[] = {
"inactive",
"active on IO",
"disabled on IO",

View File

@ -130,7 +130,7 @@ static void prepare_mrc_cache(struct pei_data *pei_data)
__func__, pei_data->mrc_input, pei_data->mrc_input_len);
}
static const char* ecc_decoder[] = {
static const char *ecc_decoder[] = {
"inactive",
"active on IO",
"disabled on IO",

View File

@ -366,7 +366,7 @@ struct soc_gpio_config {
/* Description of GPIO 'bank' ex. {ncore, score. ssus} */
struct gpio_bank {
const int gpio_count;
const u8* gpio_to_pad;
const u8 *gpio_to_pad;
const int legacy_base;
const unsigned long pad_base;
const u8 has_wake_en :1;

View File

@ -342,7 +342,7 @@ struct soc_gpio_config {
/* Description of GPIO 'bank' ex. {ncore, score. ssus} */
struct gpio_bank {
const int gpio_count;
const u8* gpio_to_pad;
const u8 *gpio_to_pad;
const int legacy_base;
const unsigned long pad_base;
const u8 has_wake_en :1;

View File

@ -646,7 +646,7 @@ void clock_init(void)
graphics_pll();
}
void clock_grp_enable_clear_reset(u32 val, u32* clk_enb_set_reg,
void clock_grp_enable_clear_reset(u32 val, u32 *clk_enb_set_reg,
u32 *rst_dev_clr_reg)
{
write32(clk_enb_set_reg, val);

View File

@ -433,7 +433,8 @@ void clock_disable_regs(u32 bits[DEV_CONFIG_BLOCKS]);
void clock_set_reset_regs(u32 bits[DEV_CONFIG_BLOCKS]);
void clock_clr_reset_regs(u32 bits[DEV_CONFIG_BLOCKS]);
void clock_enable_clear_reset(u32 l, u32 h, u32 u, u32 v, u32 w, u32 x, u32 y);
void clock_grp_enable_clear_reset(u32 val, u32* clk_enb_set_reg, u32* rst_dev_clr_reg);
void clock_grp_enable_clear_reset(u32 val, u32 *clk_enb_set_reg,
u32 *rst_dev_clr_reg);
void clock_reset_l(u32 l);
void clock_reset_h(u32 h);
void clock_reset_u(u32 u);

View File

@ -48,7 +48,7 @@ enum power_mode {
#define CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL POWER_MODE_ON
#endif
static const char* power_mode_names[] = {
static const char *power_mode_names[] = {
[POWER_MODE_OFF] = "off",
[POWER_MODE_ON] = "on",
[POWER_MODE_LAST] = "last",

View File

@ -830,7 +830,7 @@ static int intel_me_read_mbp(me_bios_payload *mbp_data)
memset(mbp_data, 0, sizeof(*mbp_data));
while (mbp_hdr.num_entries--) {
u32* copy_addr;
u32 *copy_addr;
u32 copy_size, buffer_room;
void *p;

View File

@ -827,7 +827,7 @@ static int intel_me_read_mbp(me_bios_payload *mbp_data)
memset(mbp_data, 0, sizeof(*mbp_data));
while (mbp_hdr.num_entries--) {
u32* copy_addr;
u32 *copy_addr;
u32 copy_size, buffer_room;
void *p;

View File

@ -782,7 +782,7 @@ static int intel_me_read_mbp(me_bios_payload *mbp_data)
memset(mbp_data, 0, sizeof(*mbp_data));
while (mbp_hdr.num_entries--) {
u32* copy_addr;
u32 *copy_addr;
u32 copy_size, buffer_room;
void *p;