mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
cfi_flash: Fix whitespace with casting
When casting to a pointer type, the asterisk should be attached to the type name, not separated by a space. Fix all instances where this occurs. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
b168386ba9
commit
db91bb242f
1 changed files with 2 additions and 2 deletions
|
@ -234,10 +234,10 @@ static void flash_make_cmd(flash_info_t *info, u32 cmd, void *cmdbuf)
|
|||
cword_offset = (info->portwidth-i)%info->chipwidth;
|
||||
#if defined(__LITTLE_ENDIAN) || defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
|
||||
cp_offset = info->portwidth - i;
|
||||
val = *((uchar*)&cmd_le + cword_offset);
|
||||
val = *((uchar *)&cmd_le + cword_offset);
|
||||
#else
|
||||
cp_offset = i - 1;
|
||||
val = *((uchar*)&cmd + sizeof(u32) - cword_offset - 1);
|
||||
val = *((uchar *)&cmd + sizeof(u32) - cword_offset - 1);
|
||||
#endif
|
||||
cp[cp_offset] = (cword_offset >= sizeof(u32)) ? 0x00 : val;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue