powerpc/powernv: Simplify definitions of EEH debugfs handlers
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 9 Feb 2016 04:50:24 +0000 (15:50 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Feb 2016 01:04:46 +0000 (12:04 +1100)
commitccc9662da5494a7c4ff5ed5d167285b5a28d5fb3
treeb2cc5b06f7e5fb648f29e5a5fe6894a9e959806c
parent6dfb54049f9a99b24fe5d5cd2d3af19eadc8f31f
powerpc/powernv: Simplify definitions of EEH debugfs handlers

The EEH debugfs handlers have same prototype. This introduces
a macro to define them, then to simplify the code. No logical
changes.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/eeh-powernv.c