summaryrefslogtreecommitdiffstats
path: root/drivers/atm/idt77252.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-17 02:29:04 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-18 13:39:38 +0200
commit3d2ceaa63b81f41cd95e8954555130cc801c4452 (patch)
treee6461559c392b7df0aff06cff546bcbaef54beb5 /drivers/atm/idt77252.h
parentdrivers/atm/suni: Convert timers to use timer_setup() (diff)
downloadlinux-3d2ceaa63b81f41cd95e8954555130cc801c4452.tar.xz
linux-3d2ceaa63b81f41cd95e8954555130cc801c4452.zip
atm: idt77252: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This required adding a pointer back to vc_map, and adjusting the locking around removal a bit. Cc: Chas Williams <3chas3@gmail.com> Cc: linux-atm-general@lists.sourceforge.net Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/idt77252.h')
-rw-r--r--drivers/atm/idt77252.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/atm/idt77252.h b/drivers/atm/idt77252.h
index 3a82cc23a053..9339197d701c 100644
--- a/drivers/atm/idt77252.h
+++ b/drivers/atm/idt77252.h
@@ -184,6 +184,8 @@ struct aal1 {
unsigned char sequence;
};
+struct vc_map;
+
struct rate_estimator {
struct timer_list timer;
unsigned int interval;
@@ -193,6 +195,7 @@ struct rate_estimator {
long avcps;
u32 cps;
u32 maxcps;
+ struct vc_map *vc;
};
struct vc_map {