mtd: sh_flctl: Minor cleanups
authorBastian Hecht <hechtb@googlemail.com>
Fri, 19 Oct 2012 10:15:34 +0000 (12:15 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 15 Nov 2012 13:37:50 +0000 (15:37 +0200)
commite8a9d8f31c592eea89f1b0d3fd425e7a96944e88
tree704a94cb7e7a5ab31e57779c7b719ffc88e1bdda
parent5de0b52ea8f8f5149502867acff2efb5efaf1fc2
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>
drivers/mtd/nand/sh_flctl.c
include/linux/mtd/sh_flctl.h