openpic: Unfold read_IRQreg
commit8d3a8c1e77b0485d4335aa3733c550dc606ac819
authorAlexander Graf <agraf@suse.de>
Wed, 7 Sep 2011 11:41:54 +0000 (7 13:41 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:48:06 +0000 (6 09:48 +0200)
treed68b3bb361d5a83b5d5e3d25caefa3a58e5f3a10
parente5697f20a262e1fbfd8288950d043f359dc19f60
openpic: Unfold read_IRQreg

The helper function read_IRQreg was always called with a specific argument on
the type of register to access. Inside the function we were simply doing a
switch on that constant argument again. It's a lot easier to just unfold this
into two separate functions and call each individually.

Reported-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c