diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-03-10 10:23:50 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-03-10 10:23:50 +0000 |
commit | 4a027397901662198760fef04ab9b2ee78b5153d (patch) | |
tree | b7eca60e5736eb155655f7cd7d13332983cd66a0 /include | |
parent | b7b5c662ac156671519acafa4620c73710ef1cf1 (diff) |
mtd: Make the third arg of mtd_concat_create() const
The "name" argument of mtd_concat_create() is used to set the
concat->mtd.name pointer which is already "const char *". Setting the
argument type to "const char *" avoids the warning from drivers passing
a "const char *" pointer (like the one returned by dev_name).
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/concat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/concat.h b/include/linux/mtd/concat.h index c02f3d264ecf..e80c674daeb3 100644 --- a/include/linux/mtd/concat.h +++ b/include/linux/mtd/concat.h @@ -13,7 +13,7 @@ struct mtd_info *mtd_concat_create( struct mtd_info *subdev[], /* subdevices to concatenate */ int num_devs, /* number of subdevices */ - char *name); /* name for the new device */ + const char *name); /* name for the new device */ void mtd_concat_destroy(struct mtd_info *mtd); |