crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init'
authorYang Shen <shenyang39@huawei.com>
Sat, 27 Mar 2021 07:28:47 +0000 (15:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:13 +0000 (18:28 +1100)
commit2bcf36348ce50e650fe8e1db046029afc89ef098
treebaaf078d595b14bfa0168939ff403a53aaf27919
parentd746881855ba167597d835de512150b6e6ea19ae
crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init'

The operations about 'sqe' are different on some hardwares. Add a struct
'hisi_zip_sqe_ops' to describe the operations in a hardware. And choose the
'ops' in 'hisi_zip_acomp_init' according to the hardware.

Signed-off-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_crypto.c