From be95ec033463b20061f54bdd6347a04b34bc8376 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 12 Apr 2013 00:25:26 +0200 Subject: backports: dissolve compat-3.7.h Signed-off-by: Johannes Berg --- backport/backport-include/linux/tty.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 backport/backport-include/linux/tty.h (limited to 'backport/backport-include/linux/tty.h') diff --git a/backport/backport-include/linux/tty.h b/backport/backport-include/linux/tty.h new file mode 100644 index 00000000..0424dc79 --- /dev/null +++ b/backport/backport-include/linux/tty.h @@ -0,0 +1,14 @@ +#ifndef __BACKPORT_LINUX_TTY_H +#define __BACKPORT_LINUX_TTY_H +#include_next + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0) +/* Backports tty_lock: Localise the lock */ +#define tty_lock(__tty) tty_lock() +#define tty_unlock(__tty) tty_unlock() + +#define tty_port_register_device(port, driver, index, device) \ + tty_register_device(driver, index, device) +#endif + +#endif /* __BACKPORT_LINUX_TTY_H */ -- cgit v1.2.3