aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2015-08-17 16:58:11 -0700
committerGreg Kroah-Hartman <[email protected]>2015-09-12 18:24:19 -0700
commit1d0d1c00daff961b130691a64ad2cde6d856d24e (patch)
treeb52b17883b0c72cbdf5cc5e6cd32c8acc7439c53 /lib/debugobjects.c
parentde332b11946f1e5f9d8513828e18701d6cb903d4 (diff)
staging: comedi: s526: refactor gpct registers
The S526 board has 4 general purpose counter/timers. The current defines used for the registers of these devices do not provide much clarity in what they are. Refactor the code to add some clarity. Replace the current register defines with macros that return the correct offset based on the counter 'channel'. Introduce a some helper functions to handle reading/writing the LSB/MSB registers so that they are always accessed in the correct oreder. Signed-off-by: H Hartley Sweeten <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions