mtd: sh_flctl: Minor cleanups
Some small fixes to avoid sparse and smatch complain. Other cosmetic fixes as well. - Change of the type of the member index in struct sh_flctl from signed to unsigned. We use index by addressing array members, so unsigned is more concise here. Adapt functions relying on sh_flctl::index. - Remove a blurring cast in write_fiforeg(). - Apply consistent naming scheme when refering to the data buffer. - Shorten some unnecessarily verbose functions. - Remove spaces at start of lines. Signed-off-by: Bastian Hecht <hechtb@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
committed by
Artem Bityutskiy
parent
5de0b52ea8
commit
e8a9d8f31c
@@ -147,7 +147,7 @@ struct sh_flctl {
|
||||
|
||||
uint8_t done_buff[2048 + 64]; /* max size 2048 + 64 */
|
||||
int read_bytes;
|
||||
int index;
|
||||
unsigned int index;
|
||||
int seqin_column; /* column in SEQIN cmd */
|
||||
int seqin_page_addr; /* page_addr in SEQIN cmd */
|
||||
uint32_t seqin_read_cmd; /* read cmd in SEQIN cmd */
|
||||
|
||||
Reference in New Issue
Block a user