crypto: ccree - remove struct cc_sram_ctx
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 Feb 2020 18:19:12 +0000 (19:19 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2020 01:25:44 +0000 (09:25 +0800)
commitf1b19dff53cfc43b5171f0c74fe56e0724ff7b01
tree468f2f501a26e99fb46c4b64a713fe840389ef24
parentf33d807c9d8847c634ddcb033178f93347428e7b
crypto: ccree - remove struct cc_sram_ctx

The cc_sram_ctx structure contains only a single member, and only one
instance exists.  Simplify the code and reduce memory consumption by
moving this member to struct cc_drvdata.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_driver.h
drivers/crypto/ccree/cc_sram_mgr.c