crypto: hisilicon/zip - use a enum parameter instead of some macros
authorYang Shen <shenyang39@huawei.com>
Mon, 7 Sep 2020 08:21:57 +0000 (16:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Sep 2020 07:20:09 +0000 (17:20 +1000)
commitde590233074ffbd28d15020a88b558127921f11f
treebfac7eee87afdc3b4515d99a5b2ac115fa0102fc
parent533b2079291c5941b98b624738511a22e0dca10d
crypto: hisilicon/zip - use a enum parameter instead of some macros

Macros 'QPC_COMP', 'QPC_DECOMP' and 'HZIP_CTX_Q_NUM' are relative and
incremental. So, use an enum instead.

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