]> git.karo-electronics.de Git - linux-beck.git/commit
mtd/nand/sh_flctl: Replace the dangerous mtd_to_flctl macro
authorFerenc Wagner <wferi@niif.hu>
Tue, 23 Mar 2010 17:09:09 +0000 (18:09 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 10 May 2010 13:22:19 +0000 (14:22 +0100)
commit67026418f534045525a7c39f506006cd7fbd197f
tree903d137938668e972ad5a4941e9c062dbba42593
parentb92b5c41a05b69f56e3d5e92dce3dbb5f5f5cf81
mtd/nand/sh_flctl: Replace the dangerous mtd_to_flctl macro

The original macro worked only when applied to variables named 'mtd'.
While this could have been fixed by simply renaming the macro argument,
a more type-safe replacement is preferred.

Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
include/linux/mtd/sh_flctl.h