powerpc/ptdump: Use DEFINE_SHOW_ATTRIBUTE()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 8 Jul 2021 16:49:40 +0000 (16:49 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Aug 2021 03:35:48 +0000 (13:35 +1000)
commit11f27a7fa4ca27935de74e3eb052bdc430d5f8d8
treeeba522d121682ead120a643c942ff24ca9dea551
parent33e1402435cb9f3021439a15935ea2dc69ec1844
powerpc/ptdump: Use DEFINE_SHOW_ATTRIBUTE()

Use DEFINE_SHOW_ATTRIBUTE() instead of open coding
open() and fops.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b864a92693ca8413ef0b19f0c12065c212899b6e.1625762905.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/ptdump/bats.c
arch/powerpc/mm/ptdump/hashpagetable.c
arch/powerpc/mm/ptdump/ptdump.c
arch/powerpc/mm/ptdump/segment_regs.c