]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/zip - adjust functions location
authorYang Shen <shenyang39@huawei.com>
Sat, 27 Mar 2021 07:28:45 +0000 (15:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:13 +0000 (18:28 +1100)
commit1b8591506b75d4bd2dc7594244a231628761a4ce
tree869ea3d7d434e1b1b3a53fda42fad9e03aeeeb7a
parent014e8719cd7799d18bb5297b6e2b58bf45868a60
crypto: hisilicon/zip - adjust functions location

This patch changes nothing about functions except location in order to make
code logic clearly.

This adjustment follows three principles:
1.The called functions are listed in order above the calling functions.
2.The paired functions are next to each other.
3.Logically similar functions are placed in the same area. Here, we use
the callback of 'acomp_alg' as the basis for dividing areas.

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