macintosh/via-pmu: Clean up interrupt statistics
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 2 Jul 2018 08:21:19 +0000 (04:21 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 09:56:43 +0000 (19:56 +1000)
commitb5c7cccaacdfa8d707da3e65970b15070f56df5e
treee3190148ddc2b8d1d6d645c3c0aaca82299a73d3
parentebd722275f9cfc6752e29d2412fa3816ca05764b
macintosh/via-pmu: Clean up interrupt statistics

Replace an open-coded ffs() with the function call.
Simplify an if-else cascade using a switch statement.
Correct a typo and an indentation issue.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/via-pmu.c