Commit a44dce50 authored by Longfang Liu's avatar Longfang Liu Committed by Herbert Xu

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: default avatarLongfang Liu <liulongfang@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4b7aef02
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
#ifndef __HISI_SEC_V2_H #ifndef __HISI_SEC_V2_H
#define __HISI_SEC_V2_H #define __HISI_SEC_V2_H
#include <linux/list.h>
#include "../qm.h" #include "../qm.h"
#include "sec_crypto.h" #include "sec_crypto.h"
...@@ -50,7 +48,7 @@ struct sec_req { ...@@ -50,7 +48,7 @@ struct sec_req {
int err_type; int err_type;
int req_id; int req_id;
int flag; u32 flag;
/* Status of the SEC request */ /* Status of the SEC request */
bool fake_busy; bool fake_busy;
...@@ -139,6 +137,7 @@ struct sec_ctx { ...@@ -139,6 +137,7 @@ struct sec_ctx {
bool pbuf_supported; bool pbuf_supported;
struct sec_cipher_ctx c_ctx; struct sec_cipher_ctx c_ctx;
struct sec_auth_ctx a_ctx; struct sec_auth_ctx a_ctx;
struct device *dev;
}; };
enum sec_endian { enum sec_endian {
......
This diff is collapsed.
...@@ -64,7 +64,6 @@ enum sec_addr_type { ...@@ -64,7 +64,6 @@ enum sec_addr_type {
}; };
struct sec_sqe_type2 { struct sec_sqe_type2 {
/* /*
* mac_len: 0~4 bits * mac_len: 0~4 bits
* a_key_len: 5~10 bits * a_key_len: 5~10 bits
...@@ -120,7 +119,6 @@ struct sec_sqe_type2 { ...@@ -120,7 +119,6 @@ struct sec_sqe_type2 {
/* c_pad_len_field: 0~1 bits */ /* c_pad_len_field: 0~1 bits */
__le16 c_pad_len_field; __le16 c_pad_len_field;
__le64 long_a_data_len; __le64 long_a_data_len;
__le64 a_ivin_addr; __le64 a_ivin_addr;
__le64 a_key_addr; __le64 a_key_addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment