of: mtd: nuke useless const qualifier
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 10 Jul 2012 13:35:50 +0000 (13:35 +0000)
committerRob Herring <rob.herring@calxeda.com>
Tue, 10 Jul 2012 15:32:06 +0000 (10:32 -0500)
commite95d8aafa5d911bf523bc47fe89f3336eb8a1b51
treef9c0f35017fb68d36dbb9357682d24e000a49950
parent74a7f08448adea6cb47cd9b260c98ff168117e92
of: mtd: nuke useless const qualifier

This patch does the following:
 -const int of_get_nand_ecc_mode(struct device_node *np)
 +int of_get_nand_ecc_mode(struct device_node *np)

because:
1. it is probably just a typo?
2. it causes warnings like this when people assing the returned
   value to an 'int' variable:
   include/linux/of_mtd.h:14:18: warning: type qualifiers ignored on functi=
on return type [-Wignored-qualifiers]

Remove also the unnecessary "extern" qualifier to be consistent with other
declarations in this file.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/of_mtd.c
include/linux/of_mtd.h