aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-07-10 12:23:39 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-04 02:38:58 -0400
commit5dee4674c8dd4398f4806aae153888319c7e2be9 (patch)
tree0fbbd9a5e3ee970d8e6444b9aa2527360ad5052e /drivers/mtd/mtdpart.c
parent3419cc303f643e3445be954e5590cc0e71c5c461 (diff)
mtd: mark mtd_is_partition argument as constant
'struct mtd_info' is not modified by 'mtd_is_partition()' so it can be marked as "const". Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index d518e4db8a0b..85005846f30d 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -744,7 +744,7 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types,
744 return ret; 744 return ret;
745} 745}
746 746
747int mtd_is_partition(struct mtd_info *mtd) 747int mtd_is_partition(const struct mtd_info *mtd)
748{ 748{
749 struct mtd_part *part; 749 struct mtd_part *part;
750 int ispart = 0; 750 int ispart = 0;