crypto: s5p-sss - Constify pointed data (arguments and local variables)
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 1 Mar 2018 20:50:13 +0000 (21:50 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:47 +0000 (22:45 +0800)
commit6584eacb7cc7885509d4a27120a48ae1e404dc4c
treece6d0fb0f2b3167b3ed70c5c745f7a4365194283
parent0e477c59ba7e1f5d3c3cfea4d4c282c722b47357
crypto: s5p-sss - Constify pointed data (arguments and local variables)

Improve the code (safety and readability) by indicating that data passed
through pointer is not modified.  This adds const keyword in many places,
most notably:
 - the driver data (pointer to struct samsung_aes_variant),
 - scatterlist addresses written as value to device registers,
 - key and IV arrays.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c