~ubuntu-branches/ubuntu/saucy/linux-ti-omap4/saucy-proposed

« back to all changes in this revision

Viewing changes to drivers/s390/char/keyboard.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Stefan Bader, Upstream Kernel Changes
  • Date: 2012-08-15 17:17:43 UTC
  • Revision ID: package-import@ubuntu.com-20120815171743-h5wnuf51xe7pvdid
Tags: 3.5.0-207.13
[ Paolo Pisati ]

* Start new release

[ Stefan Bader ]

* (config) Enable getabis to use local package copies

[ Upstream Kernel Changes ]

* fixup: gargabe collect iva_seq[0|1] init
* [Config] enable all SND_OMAP_SOC_*s
* fixup: cm2xxx_3xxx.o is needed for omap2_cm_read|write_reg
* fixup: add some snd_soc_dai* helper functions
* fixup: s/snd_soc_dpcm_params/snd_soc_dpcm/g
* fixup: typo, no_host_mode and useless SDP4430 init
* fixup: enable again aess hwmod

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 */
22
22
 
23
23
struct kbd_data {
24
 
        struct tty_struct *tty;
 
24
        struct tty_port *port;
25
25
        unsigned short **key_maps;
26
26
        char **func_table;
27
27
        fn_handler_fn **fn_handler;
42
42
 * Helper Functions.
43
43
 */
44
44
static inline void
45
 
kbd_put_queue(struct tty_struct *tty, int ch)
 
45
kbd_put_queue(struct tty_port *port, int ch)
46
46
{
 
47
        struct tty_struct *tty = tty_port_tty_get(port);
 
48
        if (!tty)
 
49
                return;
47
50
        tty_insert_flip_char(tty, ch, 0);
48
51
        tty_schedule_flip(tty);
 
52
        tty_kref_put(tty);
49
53
}
50
54
 
51
55
static inline void
52
 
kbd_puts_queue(struct tty_struct *tty, char *cp)
 
56
kbd_puts_queue(struct tty_port *port, char *cp)
53
57
{
 
58
        struct tty_struct *tty = tty_port_tty_get(port);
 
59
        if (!tty)
 
60
                return;
54
61
        while (*cp)
55
62
                tty_insert_flip_char(tty, *cp++, 0);
56
63
        tty_schedule_flip(tty);
 
64
        tty_kref_put(tty);
57
65
}