OSDN Git Service

openpic: Unfold write_IRQreg
authorAlexander Graf <agraf@suse.de>
Wed, 7 Sep 2011 11:47:22 +0000 (13:47 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:48:07 +0000 (09:48 +0200)
commit11de8b716665f1f6d5e586c62411f47ae539c0dc
tree208f19e1f08d4729a524ffc82f409d7c88dc4e5a
parent8d3a8c1e77b0485d4335aa3733c550dc606ac819
openpic: Unfold write_IRQreg

The helper function write_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