]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Use debugfs_create_u32 for eeh_max_freezes
authorOliver O'Halloran <oohall@gmail.com>
Fri, 15 Feb 2019 00:48:11 +0000 (11:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:14 +0000 (00:10 +1100)
commitb7f43463b1075077d9ecc4edb43a48d887c0acf9
treec7d8f9145d041b1d4c79f401eac023f97558b24c
parent993876fd2ac4e40c6ccfe5503365cd2a2253daba
powerpc/eeh: Use debugfs_create_u32 for eeh_max_freezes

There's no need to the custom getter/setter functions so we should remove
them in favour of using the generic one. While we're here, change the type
of eeh_max_freeze to u32 and print the value in decimal rather than
hex because printing it in hex makes no sense.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c