aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/physmap-versatile.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-10-19 09:49:05 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-11-05 22:24:29 +0100
commit6ca15cfa0788ebef365ce31d1e01ea30a389a895 (patch)
treefe6dbb27a233f1f56b2c54be0b0edfbff5d05304 /drivers/mtd/maps/physmap-versatile.h
parentmtd: maps: Merge physmap_of.c into physmap-core.c (diff)
downloadlinux-dev-6ca15cfa0788ebef365ce31d1e01ea30a389a895.tar.xz
linux-dev-6ca15cfa0788ebef365ce31d1e01ea30a389a895.zip
mtd: maps: Rename physmap_of_{versatile, gemini} into physmap-{versatile, gemini}
Now that the physmap_of driver is gone, the gemini and versative extensions are part of the physmap driver. Rename the source files and the config option to reflect this. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/mtd/maps/physmap-versatile.h')
-rw-r--r--drivers/mtd/maps/physmap-versatile.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap-versatile.h b/drivers/mtd/maps/physmap-versatile.h
new file mode 100644
index 000000000000..9cf39d031f5a
--- /dev/null
+++ b/drivers/mtd/maps/physmap-versatile.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <linux/of.h>
+#include <linux/mtd/map.h>
+
+#ifdef CONFIG_MTD_PHYSMAP_VERSATILE
+int of_flash_probe_versatile(struct platform_device *pdev,
+ struct device_node *np,
+ struct map_info *map);
+#else
+static inline
+int of_flash_probe_versatile(struct platform_device *pdev,
+ struct device_node *np,
+ struct map_info *map)
+{
+ return 0;
+}
+#endif