summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-02-24 17:33:32 +0000
committerSimon Glass <sjg@chromium.org>2013-02-28 19:49:13 -0800
commit218da0f35f4b5e5bf13d3dba6d975d4d5d65516f (patch)
tree0601a777e77d4c582882426e5aefcd3541032be5 /include
parentbd091b67d0ef2959ed0ff2aa6575ddb0d21c1f71 (diff)
downloadblackbird-obmc-uboot-218da0f35f4b5e5bf13d3dba6d975d4d5d65516f.tar.gz
blackbird-obmc-uboot-218da0f35f4b5e5bf13d3dba6d975d4d5d65516f.zip
hash: Use lower case for hash algorithm names
Rather than use strcasecmp() in the hash algorithm search, require the caller to do this first. Most of U-Boot can use lower case anyway, and the hash command can convert to lower case before calling hash_command(). This saves needing strcasecmp() for boards that use hashing but not the hash command. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hash.h b/include/hash.h
index f2b2c4520d..2dbbd9b7d5 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -61,7 +61,7 @@ enum {
*
* This common function is used to implement specific hash commands.
*
- * @algo_name: Hash algorithm being used
+ * @algo_name: Hash algorithm being used (lower case!)
* @flags: Flags value (HASH_FLAG_...)
* @cmdtp: Pointer to command table entry
* @flag: Some flags normally 0 (see CMD_FLAG_.. above)
OpenPOWER on IntegriCloud