~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/speakup/keyhelp.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        memset(key_offsets, 0, sizeof(key_offsets));
70
70
        kp = state_tbl + nstates + 1;
71
71
        while (*kp++) {
72
 
                /* count occurrances of each function */
 
72
                /* count occurrences of each function */
73
73
                for (i = 0; i < nstates; i++, kp++) {
74
74
                        if (!*kp)
75
75
                                continue;
161
161
                }
162
162
        cur_item = letter_offsets[ch-'a'];
163
163
        } else if (type == KT_CUR) {
164
 
                if (ch == 0 && (cur_item + 1) <= MSG_FUNCNAMES_END)
 
164
                if (ch == 0
 
165
                    && (MSG_FUNCNAMES_START + cur_item + 1) <=
 
166
                    MSG_FUNCNAMES_END)
165
167
                        cur_item++;
166
168
                else if (ch == 3 && cur_item > 0)
167
169
                        cur_item--;