crypto: nx - Improve debugfs_create_u{32,64}() handling for atomics
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 21 Oct 2019 14:51:45 +0000 (16:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Oct 2019 15:09:59 +0000 (02:09 +1100)
commitfe95938dadbd151cb8b4720f6e0a9e3a3523f8f2
tree50f6d32bf7c7b9a9482db557cf2231a01f253999
parent03f008c52b76114b83483de2cf15ed36fc34930c
crypto: nx - Improve debugfs_create_u{32,64}() handling for atomics

Variables of type atomic{,64}_t can be used fine with
debugfs_create_u{32,64}, when passing a pointer to the embedded counter.
This allows to get rid of the casts, which prevented compiler checks.

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