diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-12-12 17:52:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-13 14:39:37 +0300 |
commit | aebae88197704c16787aabfb03f6fd8b2db10ad2 (patch) | |
tree | 41c233082e1a6986c2cca98d5f58ff4e5e453801 /drivers/staging/ccree/ssi_driver.c | |
parent | 3d035ae090a59a41da447b4f8b6ce5bb32c6ae0f (diff) | |
download | linux-aebae88197704c16787aabfb03f6fd8b2db10ad2.tar.xz |
staging: ccree: fix cipher naming convention
The blkcipher files were using a func naming convention which was
inconsistent (ssi vs. cc), included a long prefix (ssi_ablkcipher)
and often too long.
Make the code more readable by switching to a simpler, consistent naming
convention.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/ssi_driver.c')
-rw-r--r-- | drivers/staging/ccree/ssi_driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c index 491e2b9ccd2b..2a0dd85db38a 100644 --- a/drivers/staging/ccree/ssi_driver.c +++ b/drivers/staging/ccree/ssi_driver.c @@ -351,9 +351,9 @@ static int init_cc_resources(struct platform_device *plat_dev) } /* Allocate crypto algs */ - rc = ssi_ablkcipher_alloc(new_drvdata); + rc = cc_cipher_alloc(new_drvdata); if (rc) { - dev_err(dev, "ssi_ablkcipher_alloc failed\n"); + dev_err(dev, "cc_cipher_alloc failed\n"); goto post_ivgen_err; } @@ -381,7 +381,7 @@ static int init_cc_resources(struct platform_device *plat_dev) post_hash_err: cc_hash_free(new_drvdata); post_cipher_err: - ssi_ablkcipher_free(new_drvdata); + cc_cipher_free(new_drvdata); post_ivgen_err: ssi_ivgen_fini(new_drvdata); post_power_mgr_err: @@ -418,7 +418,7 @@ static void cleanup_cc_resources(struct platform_device *plat_dev) cc_aead_free(drvdata); cc_hash_free(drvdata); - ssi_ablkcipher_free(drvdata); + cc_cipher_free(drvdata); ssi_ivgen_fini(drvdata); cc_pm_fini(drvdata); cc_buffer_mgr_fini(drvdata); |