crypto/nx: Make enable code generic to add new GZIP compression type
authorHaren Myneni <haren@linux.ibm.com>
Fri, 17 Apr 2020 09:09:29 +0000 (02:09 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Apr 2020 06:53:14 +0000 (16:53 +1000)
commit4aebf3ce26ca2128433b615cd2535c22b03c8fa3
treebe3268a96f20d75a7e7a59e826b67cb8df2f2023
parent32e091a668bc8575c1ad6afd616726c60ba6e5d0
crypto/nx: Make enable code generic to add new GZIP compression type

Make setup and enable code generic to support new GZIP compression type.
Changed nx842 reference to nx and moved some code to new functions.
Functionality is not changed except sparse warning fix - setting NULL
instead of 0 for per_cpu send window in nx_delete_coprocs().

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1587114569.2275.1126.camel@hbabu-laptop
drivers/crypto/nx/nx-common-powernv.c