]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8bf3b3ee85bdabeb127247568aabbee9f43740f
tree50f6d32bf7c7b9a9482db557cf2231a01f253999
parent7519f7d8eba036675501def30c2295fa7bbff9a4
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