summaryrefslogtreecommitdiffstats
path: root/drivers/atm/idt77252.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-16 17:29:04 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-18 12:39:38 +0100
commit3d2ceaa63b81f41cd95e8954555130cc801c4452 (patch)
treee6461559c392b7df0aff06cff546bcbaef54beb5 /drivers/atm/idt77252.h
parent847f03ee16cd4dbe1f15fe09989f52300e43ca10 (diff)
downloadlinux-3d2ceaa63b81f41cd95e8954555130cc801c4452.tar.gz
linux-3d2ceaa63b81f41cd95e8954555130cc801c4452.tar.bz2
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 {