diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-05-13 17:33:56 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-05-28 21:00:25 +0300 |
commit | 3b1a2c97210b1edd1a999ff8c1f72ab28f7609f7 (patch) | |
tree | 80f16d5e2609d3260ef5fceeec7d31e143d454bf /include/linux/of_fdt.h | |
parent | 3386e0fa905c31bf1dafa2cbe2ecceb7e5ce2e66 (diff) | |
download | linux-3b1a2c97210b1edd1a999ff8c1f72ab28f7609f7.tar.xz |
of/fdt: Make fdt blob input parameters of unflatten functions const
Operations to unflatten fdt blobs never modify the input blobs, hence
make them const. Now we no longer need to cast arbitrary const data to
"void *" when calling of_fdt_unflatten_tree().
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 587ee507965d..0cf217d404ce 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -37,7 +37,7 @@ extern bool of_fdt_is_big_endian(const void *blob, unsigned long node); extern int of_fdt_match(const void *blob, unsigned long node, const char *const *compat); -extern void of_fdt_unflatten_tree(unsigned long *blob, +extern void of_fdt_unflatten_tree(const unsigned long *blob, struct device_node **mynodes); /* TBD: Temporary export of fdt globals - remove when code fully merged */ |