diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:03:57 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:03:57 +0000 |
commit | 97fda1fbba8eaa7dfb5cadeb97a25e9f1a95d557 (patch) | |
tree | 2f4e19523cae15aa569c16dde8ce201e5146fa08 /drivers/dahdi/wctdm24xxp/wctdm24xxp.h | |
parent | 3581fa8cce5665f22afe05e4345f933be0799cd6 (diff) |
wctdm24xxp: Calculate the SPI offsets ahead of time.
Updates the CMD_BYTE macro to use precalculated offsets.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9970 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/wctdm24xxp.h')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/wctdm24xxp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dahdi/wctdm24xxp/wctdm24xxp.h b/drivers/dahdi/wctdm24xxp/wctdm24xxp.h index fdcaec6..db3d07a 100644 --- a/drivers/dahdi/wctdm24xxp/wctdm24xxp.h +++ b/drivers/dahdi/wctdm24xxp/wctdm24xxp.h @@ -222,14 +222,14 @@ struct wctdm_module { /* Protected by wctdm.reglock */ struct list_head pending_cmds; struct list_head active_cmds; + u8 offsets[3]; + u8 subaddr; u8 isrshadow[ISR_COMMANDS]; + u8 card; enum module_type type; int sethook; /* pending hook state command */ int dacssrc; - - int altcs; - u8 card; }; struct wctdm { |