Skip to contentSkip to conversation

mmc: Remove hwpartition help text when command is disabled

PATCH In review Alex Kiernan 2 participants 2 messages Jun 11, 2018 – Jun 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: Remove hwpartition help text when command is disabled

When the mmc hwpartition command is disabled, remove the associated help text.

---

 cmd/mmc.c | 2 ++
 1 file changed, 2 insertions(+)
cmd/mmc.c +2 -0
index c2ee2d9c0a..3920a1836a 100644
@@ -935,6 +935,7 @@ U_BOOT_CMD(
 	"mmc part - lists available partition on current mmc device\n"
 	"mmc dev [dev] [part] - show or set current mmc device [partition]\n"
 	"mmc list - lists available devices\n"
+#if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
 	"mmc hwpartition [args...] - does hardware partitioning\n"
 	"  arguments (sizes in 512-byte blocks):\n"
 	"    [user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes\n"
@@ -942,6 +943,7 @@ U_BOOT_CMD(
 	"    [check|set|complete] - mode, complete set partitioning completed\n"
 	"  WARNING: Partitioning is a write-once setting once it is set to complete.\n"
 	"  Power cycling is required to initialize partitions after set to complete.\n"
+#endif
 #ifdef CONFIG_SUPPORT_EMMC_BOOT
 	"mmc bootbus dev boot_bus_width reset_boot_bus_width boot_mode\n"
 	" - Set the BOOT_BUS_WIDTH field of the specified device\n"
Signature · 1 line
2.17.0
#1 lore raw
Quoted 4 lines · Alex Kiernan

When the mmc hwpartition command is disabled, remove the associated help text.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180619/ffd77fc3/attachment.sig>