summaryrefslogtreecommitdiff
path: root/mmc_cmds.h
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2012-02-20 12:34:25 -0500
committerChris Ball <cjb@laptop.org>2012-02-20 12:34:25 -0500
commitb9c7a17fce190f085bb4eb6e6535a22e2c69de68 (patch)
tree2f3860e87529b9e51e01caa6aeccee36996ce952 /mmc_cmds.h
parenta5bf4a2030a9dcfbcebf1b647e65c1e936a56e14 (diff)
downloadmmc-utils-b9c7a17fce190f085bb4eb6e6535a22e2c69de68.tar.gz
Rename extcsd read/write to writeprotect get/set
This leaves "extcsd read" pointing to Giuseppe's code. Also, abstract out the writeprotect code so that there's only one shared implementation in print_writeprotect_status(), used by both "extcsd read" and "writeprotect get". Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'mmc_cmds.h')
-rw-r--r--mmc_cmds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mmc_cmds.h b/mmc_cmds.h
index 1b28051..66e9acb 100644
--- a/mmc_cmds.h
+++ b/mmc_cmds.h
@@ -17,3 +17,5 @@
/* mmc_cmds.c */
int do_read_extcsd(int nargs, char **argv);
int do_write_extcsd(int nargs, char **argv);
+int do_writeprotect_get(int nargs, char **argv);
+int do_writeprotect_set(int nargs, char **argv);