diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-10-19 09:49:05 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-05 22:24:29 +0100 |
commit | 6ca15cfa0788ebef365ce31d1e01ea30a389a895 (patch) | |
tree | fe6dbb27a233f1f56b2c54be0b0edfbff5d05304 /drivers/mtd/maps/physmap-gemini.h | |
parent | mtd: maps: Merge physmap_of.c into physmap-core.c (diff) | |
download | linux-6ca15cfa0788ebef365ce31d1e01ea30a389a895.tar.xz linux-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-gemini.h')
-rw-r--r-- | drivers/mtd/maps/physmap-gemini.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap-gemini.h b/drivers/mtd/maps/physmap-gemini.h new file mode 100644 index 000000000000..72bd04ce3fdb --- /dev/null +++ b/drivers/mtd/maps/physmap-gemini.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include <linux/of.h> +#include <linux/mtd/map.h> + +#ifdef CONFIG_MTD_PHYSMAP_GEMINI +int of_flash_probe_gemini(struct platform_device *pdev, + struct device_node *np, + struct map_info *map); +#else +static inline +int of_flash_probe_gemini(struct platform_device *pdev, + struct device_node *np, + struct map_info *map) +{ + return 0; +} +#endif |