summaryrefslogtreecommitdiffstats
path: root/cryptodev_main.c
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2010-06-17 11:46:00 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-17 20:28:23 +0200
commitf56ee62857576a90a3f2c66f66b324884940fcb7 (patch)
treede2e82223b433f86ea1cd4cb5001a15be0506cea /cryptodev_main.c
parente3942824795b23cb6e09eb050e63fdb623d7ae75 (diff)
downloadcryptodev-linux-f56ee62857576a90a3f2c66f66b324884940fcb7.tar.gz
cryptodev-linux-f56ee62857576a90a3f2c66f66b324884940fcb7.tar.xz
cryptodev-linux-f56ee62857576a90a3f2c66f66b324884940fcb7.zip
crypto_op_to_*: fix typo into the correct direction
As these functions only exist to convert from one data structure into the other, their names should stick to the structure names for clarity.
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r--cryptodev_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c
index 291627f..d016931 100644
--- a/cryptodev_main.c
+++ b/cryptodev_main.c
@@ -603,7 +603,7 @@ session_op_to_compat(struct session_op *sop, struct compat_session_op *compat)
}
static inline void
-compat_to_crypto_op(struct compat_crypt_op *compat, struct crypt_op *cop)
+compat_to_crypt_op(struct compat_crypt_op *compat, struct crypt_op *cop)
{
memcpy(cop, compat, sizeof(uint32_t) * 2 + sizeof(uint16_t) * 2);
cop->src = (uint8_t *)(unsigned long)compat->src;
@@ -613,7 +613,7 @@ compat_to_crypto_op(struct compat_crypt_op *compat, struct crypt_op *cop)
}
static inline void
-crypto_op_to_compat(struct crypt_op *cop, struct compat_crypt_op *compat)
+crypt_op_to_compat(struct crypt_op *cop, struct compat_crypt_op *compat)
{
memcpy(compat, cop, sizeof(uint32_t) * 2 + sizeof(uint16_t) * 2);
compat->src = (unsigned long)cop->src;
@@ -658,13 +658,13 @@ cryptodev_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case COMPAT_CIOCCRYPT:
copy_from_user(&compat_cop, (void*)arg,
sizeof(compat_cop));
- compat_to_crypto_op(&compat_cop, &cop);
+ compat_to_crypt_op(&compat_cop, &cop);
ret = crypto_run(fcr, &cop);
if (unlikely(ret))
return ret;
- crypto_op_to_compat(&cop, &compat_cop);
+ crypt_op_to_compat(&cop, &compat_cop);
copy_to_user((void*)arg, &compat_cop,
sizeof(compat_cop));
return 0;