]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 12 Nov 2012 15:17:38 +0000 (17:17 +0200)
commitc18898140555b42a90ab31b56484cd9ecd5ba6fc
treed394211cf356b8a3431c04a2884049e4bb7f36cd
parentf5c141ed61c4f9de3de28a64304e66a5a083087c
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