aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cyclades.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-24 03:00:18 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-04 12:01:54 +0100
commita8497b31fee650846fcc5a1e41f4ef22318a9925 (patch)
treea7b92db99b501b547a22de5e90e6bf0d5e9c807a /include/linux/cyclades.h
parenttty: vcc: Convert timers to use timer_setup() (diff)
downloadlinux-dev-a8497b31fee650846fcc5a1e41f4ef22318a9925.tar.xz
linux-dev-a8497b31fee650846fcc5a1e41f4ef22318a9925.zip
tty: cyclades: 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. Moves timer structures from global to attached to struct cyclades_port. Cc: Jiri Slaby <jslaby@suse.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/cyclades.h')
-rw-r--r--include/linux/cyclades.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h
index 19ae518f5471..3638eb2d52f6 100644
--- a/include/linux/cyclades.h
+++ b/include/linux/cyclades.h
@@ -156,6 +156,9 @@ struct cyclades_port {
struct cyclades_icount icount;
struct completion shutdown_wait;
int throttle;
+#ifdef CONFIG_CYZ_INTR
+ struct timer_list rx_full_timer;
+#endif
};
#define CLOSING_WAIT_DELAY 30*HZ