summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hisilicon/sec2/sec.h
diff options
context:
space:
mode:
authorLongfang Liu <liulongfang@huawei.com>2021-03-13 15:28:24 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-03-19 21:59:46 +1100
commita44dce504bce620daff97a3e77650b7b579e8753 (patch)
tree3c3c31814d188df937430c69168f20f2c7201c28 /drivers/crypto/hisilicon/sec2/sec.h
parent4b7aef0230418345be1fb77abbb1592801869901 (diff)
downloadlinux-a44dce504bce620daff97a3e77650b7b579e8753.tar.bz2
crypto: hisilicon/sec - fixes some coding style
1.delete the original complex method of obtaining the current device and replace it with the initialized device pointer. 2.fixes some coding style Signed-off-by: Longfang Liu <liulongfang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/sec2/sec.h')
-rw-r--r--drivers/crypto/hisilicon/sec2/sec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/crypto/hisilicon/sec2/sec.h b/drivers/crypto/hisilicon/sec2/sec.h
index 17ddb20ad7a1..f7eba9bd312b 100644
--- a/drivers/crypto/hisilicon/sec2/sec.h
+++ b/drivers/crypto/hisilicon/sec2/sec.h
@@ -4,8 +4,6 @@
#ifndef __HISI_SEC_V2_H
#define __HISI_SEC_V2_H
-#include <linux/list.h>
-
#include "../qm.h"
#include "sec_crypto.h"
@@ -50,7 +48,7 @@ struct sec_req {
int err_type;
int req_id;
- int flag;
+ u32 flag;
/* Status of the SEC request */
bool fake_busy;
@@ -139,6 +137,7 @@ struct sec_ctx {
bool pbuf_supported;
struct sec_cipher_ctx c_ctx;
struct sec_auth_ctx a_ctx;
+ struct device *dev;
};
enum sec_endian {