commit | 11de8b716665f1f6d5e586c62411f47ae539c0dc | [log] [tgz] |
---|---|---|
author | Alexander Graf <agraf@suse.de> | Wed Sep 07 13:47:22 2011 +0200 |
committer | Alexander Graf <agraf@suse.de> | Thu Oct 06 09:48:07 2011 +0200 |
tree | 208f19e1f08d4729a524ffc82f409d7c88dc4e5a | |
parent | 8d3a8c1e77b0485d4335aa3733c550dc606ac819 [diff] |
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>