summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/68328serial.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-04-02 13:54:41 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-09 12:02:44 -0700
commitc26f0115c0fd931e6420b6f565e5f9d154ec627e (patch)
treef48df8305acf3be94d498cacfede0e09ddc0e686 /drivers/tty/serial/68328serial.c
parent86264341bb1dafd4d38788b7c877de55b6c2f937 (diff)
TTY: 68328serial, use open/close_wait from tty_port
Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: linux-m68k@lists.linux-m68k.org Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/68328serial.c')
-rw-r--r--drivers/tty/serial/68328serial.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c
index 848662c3b16e..0c50f2e1ae01 100644
--- a/drivers/tty/serial/68328serial.c
+++ b/drivers/tty/serial/68328serial.c
@@ -127,8 +127,6 @@ struct m68k_serial {
int xmit_head;
int xmit_tail;
int xmit_cnt;
- wait_queue_head_t open_wait;
- wait_queue_head_t close_wait;
};
#define SERIAL_MAGIC 0x5301
@@ -1083,10 +1081,10 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
if (info->close_delay) {
msleep_interruptible(jiffies_to_msecs(info->close_delay));
}
- wake_up_interruptible(&info->open_wait);
+ wake_up_interruptible(&port->open_wait);
}
info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING);
- wake_up_interruptible(&info->close_wait);
+ wake_up_interruptible(&port->close_wait);
local_irq_restore(flags);
}
@@ -1105,7 +1103,7 @@ void rs_hangup(struct tty_struct *tty)
info->tport.count = 0;
info->flags &= ~ASYNC_NORMAL_ACTIVE;
info->tty = NULL;
- wake_up_interruptible(&info->open_wait);
+ wake_up_interruptible(&info->tport.open_wait);
}
/*
@@ -1126,7 +1124,7 @@ static int block_til_ready(struct tty_struct *tty, struct file * filp,
* until it's done, and then try again.
*/
if (info->flags & ASYNC_CLOSING) {
- interruptible_sleep_on(&info->close_wait);
+ interruptible_sleep_on(&port->close_wait);
#ifdef SERIAL_DO_RESTART
if (info->flags & ASYNC_HUP_NOTIFY)
return -EAGAIN;
@@ -1158,7 +1156,7 @@ static int block_til_ready(struct tty_struct *tty, struct file * filp,
* exit, either normal or abnormal.
*/
retval = 0;
- add_wait_queue(&info->open_wait, &wait);
+ add_wait_queue(&port->open_wait, &wait);
port->count--;
port->blocked_open++;
@@ -1187,7 +1185,7 @@ static int block_til_ready(struct tty_struct *tty, struct file * filp,
tty_lock();
}
current->state = TASK_RUNNING;
- remove_wait_queue(&info->open_wait, &wait);
+ remove_wait_queue(&port->open_wait, &wait);
if (!tty_hung_up_p(filp))
port->count++;
port->blocked_open--;
@@ -1301,8 +1299,6 @@ rs68328_init(void)
info->close_delay = 50;
info->closing_wait = 3000;
info->x_char = 0;
- init_waitqueue_head(&info->open_wait);
- init_waitqueue_head(&info->close_wait);
info->line = i;
info->is_cons = 1; /* Means shortcuts work */
alue='libreoffice-6-0-1'>libreoffice-6-0-1 main, development dictionaries repositoryroot
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2017-06-01Branch libreoffice-5-3-4libreoffice-5-3-4Christian Lohmaier0-0/+0
2017-05-02tdf#107558 French spelling dictionary (6.0.3) and thesaurusgov-5.3-49cp-5.3-66cp-5.3-65cp-5.3-64cp-5.3-63cp-5.3-60cp-5.3-59cp-5.3-58cp-5.3-57cp-5.3-56cp-5.3-55cp-5.3-53cp-5.3-52cp-5.3-51cp-5.3-50cp-5.3-49cp-5.3-47cp-5.3-46cp-5.3-44cp-5.3-43cp-5.3-42cp-5.3-41cp-5.3-40cp-5.3-39cp-5.3-38cp-5.3-37cp-5.3-36cp-5.3-35cp-5.3-33cp-5.3-32cp-5.3-29cp-5.3-28cp-5.3-26cp-5.3-25cp-5.3-24cp-5.3-22cp-5.3-21cp-5.3-20cp-5.3-19cp-5.3-18cp-5.3-17cp-5.3-15cp-5.3-14cp-5.3-13cp-5.3-12cp-5.3-11co-5.3-67co-5.3-66co-5.3-65co-5.3-64co-5.3-63co-5.3-59co-5.3-58co-5.3-57co-5.3-54co-5.3-49co-5.3-48cd-5.3-61cd-5.3-23libreoffice-5-3distro/collabora/cp-5.3distro/collabora/cd-5.3-3.4Olivier R6-84839/+88495
2017-03-03Update Croatian dictionary to version 2.0cp-5.3-9cp-5.3-8-wincp-5.3-8cp-5.3-7cp-5.3-6cp-5.3-5cp-5.3-4cp-5.3-3cp-5.3-2cp-5.3-10cp-5.3-1Krunoslav Šebetić3-215123/+55246
2017-02-07Guarani spell checker and thesaurus.Giovanni Caligaris9-9/+4250
2017-01-22tdf#105396 update German dictionariesAndras Timar15-90882/+360559
2016-12-29tdf#97349: typo fixes in control wordsAndras Timar1-2/+2
2016-12-14Updated the GB DictionaryMarco A.G.Pinto4-180/+2112
2016-11-23Branch libreoffice-5-3Christian Lohmaier0-0/+0
2016-11-22tdf#103922: add Tibetan syllable spellcheckerlibreoffice-5-3-branch-pointAron Budea9-0/+575
2016-11-20Czech thesaurus: regenerate from updated sourceStanislav Horacek4-4433/+3724
2016-11-07Czech thesaurus: regenerate from updated sourceStanislav Horacek6-82083/+80581
2016-10-08Calquing English’s title case is bad style in Spanish and GuaraniAdolfo Jayme Barrientos1-2/+2
2016-10-03Update pt_PT dictionary to version 16.10.1.2Andras Timar4-15942/+91971
2016-09-29Update Guarani thesaurus to v1.1Giovanni Calligaris11-915/+921
2016-08-16Update the Swedish dictionary to the latest releaseNiklas Johansson3-165718/+166321
2016-07-28cut size of README_en_GB.txtAron Budea1-15573/+11
2016-07-18tdf#97393, tdf#100019: updated EN (CA, GB, US, ZA) dictionariesAron Budea10-44003/+46538
2016-07-07Update pt_PT dictionary to version 16.7.4.1Andras Timar3-46/+74
2016-06-14tdf#90786 Put license file in the right directoryAron Budea1-1/+2
2016-05-24gb_Dictionary_add_thesaurus doesn't like whitespacelibreoffice-5-2-branch-pointcp-5.1-branch-pointChristian Lohmaier1-3/+1
2016-05-23thesuaurs.idx is generated by gb_Dictionary_add_thesaurusChristian Lohmaier2-145870/+1
2016-05-23tdf#97393 Update English Dictionaries to 2016.05.01 releaseAron Budea15-164413/+310946
2016-05-18tdf#90786 Bundle license file, and update Scottish Gaelic dict to 3.1Aron Budea4-6870/+111641
2016-04-07Update Croatian dictionaryKrunoslav Šebetić4-60130/+60741
2016-04-05Bring shipped Spanish dictionary up to version 2.1Ricardo Palomares8-7989/+22236
2016-03-14Update Icelandic dictionary and thesaurusBjörgvin Ragnarsson4-27612/+35842
2016-03-10tdf#98531 Updated Croatian dictionaryKrunoslav Šebetić3-186339/+186648
2016-02-26Czech thesaurus: Blacklist more words + re-generate after the recent changes.Jan Holesovsky2-100422/+75153
2016-02-26dictionary-to-thesaurus.py: Put the better categorized words to the front.Jan Holesovsky1-7/+13
2016-02-26dictionary-to-thesaurus.py: Only output the same class of word.Jan Holesovsky1-5/+27
2016-02-25Czech thesaurus: Updates of some terms.Jan Holesovsky2-36/+17
2016-02-25Czech thesaurus: Blacklist some unhelpful meanings.Jan Holesovsky3-8/+14
2016-02-25dictionary-to-thesaurus.py: Move blacklist to a separate file.Jan Holesovsky2-16/+35
2016-02-25Related tdf#93514: Introduce a new Czech thesaurus.Jan Holesovsky6-5/+186534
2016-02-25dictionary-to-thesaurus.py: Actually use the Czech names.Jan Holesovsky1-4/+4
2016-02-25dictionary-to-thesaurus.py: Various cleanups.Jan Holesovsky1-12/+66
2016-02-25dos2unix on the cs_CZ files.Jan Holesovsky4-520/+514
2016-02-25Czech: Script and dictionary to generate the Czech thesaurus.Jan Holesovsky2-0/+217872
2016-02-11Updated pt_PT dictionary to version 16.1.3.4Andras Timar2-15/+20
2016-01-17Bring shipped Spanish dictionary up to version 2.0Ricardo Palomares7-48438/+56809
2016-01-07Update the Swedish spelling dictionariesNiklas Johansson3-79/+649
2016-01-04tdf#96782 updated German dictionariesAndras Timar15-150513/+345430
2015-12-28Updated Slovenian thesaurusAndras Timar3-380/+1468
2015-12-12Add Guarani thesaurus (gug-PY)Giovanni Caligaris11-0/+3293
2015-10-27tdf#95024 update Hungarian spelling dictionarylibreoffice-5-1-branch-pointLászló Németh4-83523/+84518
2015-10-15Update pt_PT dictionary to version 15.10.3.1Andras Timar2-3/+4
2015-09-28tdf#94573: invalid encoding in hyph_zu_ZAJulien Nabet1-1/+1
2015-09-21tdf#94415 update Greek dictionary to version 0.9Andras Timar