diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-27 02:24:49 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-27 02:24:49 -0400 |
commit | 0af2840892ead5e07c7b08fef61881ef45b8b9c2 (patch) | |
tree | b9c6417929378ae83ab7ba1af59fcbffb66b127e /drivers/input/keyboard | |
parent | 19add7e11656dc0ae8d0187e1ed02deb3b077815 (diff) |
input: jornada680_kbd: ctrl_in/outX to __raw_read/writeX conversion.
The ctrl_xxx routines are deprecated, switch over to the __raw_xxx
versions.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r-- | drivers/input/keyboard/jornada680_kbd.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/input/keyboard/jornada680_kbd.c b/drivers/input/keyboard/jornada680_kbd.c index 5fc976dbce0b..7197c5698747 100644 --- a/drivers/input/keyboard/jornada680_kbd.c +++ b/drivers/input/keyboard/jornada680_kbd.c | |||
@@ -139,35 +139,35 @@ static void jornada_scan_keyb(unsigned char *s) | |||
139 | }, *y = matrix_PDE; | 139 | }, *y = matrix_PDE; |
140 | 140 | ||
141 | /* Save these control reg bits */ | 141 | /* Save these control reg bits */ |
142 | dc_static = (ctrl_inw(PDCR) & (~0xcc0c)); | 142 | dc_static = (__raw_readw(PDCR) & (~0xcc0c)); |
143 | ec_static = (ctrl_inw(PECR) & (~0xf0cf)); | 143 | ec_static = (__raw_readw(PECR) & (~0xf0cf)); |
144 | 144 | ||
145 | for (i = 0; i < 8; i++) { | 145 | for (i = 0; i < 8; i++) { |
146 | /* disable output for all but the one we want to scan */ | 146 | /* disable output for all but the one we want to scan */ |
147 | ctrl_outw((dc_static | *y++), PDCR); | 147 | __raw_writew((dc_static | *y++), PDCR); |
148 | ctrl_outw((ec_static | *y++), PECR); | 148 | __raw_writew((ec_static | *y++), PECR); |
149 | udelay(5); | 149 | udelay(5); |
150 | 150 | ||
151 | /* Get scanline row */ | 151 | /* Get scanline row */ |
152 | ctrl_outb(*t++, PDDR); | 152 | __raw_writeb(*t++, PDDR); |
153 | ctrl_outb(*t++, PEDR); | 153 | __raw_writeb(*t++, PEDR); |
154 | udelay(50); | 154 | udelay(50); |
155 | 155 | ||
156 | /* Read data */ | 156 | /* Read data */ |
157 | *s++ = ctrl_inb(PCDR); | 157 | *s++ = __raw_readb(PCDR); |
158 | *s++ = ctrl_inb(PFDR); | 158 | *s++ = __raw_readb(PFDR); |
159 | } | 159 | } |
160 | /* Scan no lines */ | 160 | /* Scan no lines */ |
161 | ctrl_outb(0xff, PDDR); | 161 | __raw_writeb(0xff, PDDR); |
162 | ctrl_outb(0xff, PEDR); | 162 | __raw_writeb(0xff, PEDR); |
163 | 163 | ||
164 | /* Enable all scanlines */ | 164 | /* Enable all scanlines */ |
165 | ctrl_outw((dc_static | (0x5555 & 0xcc0c)),PDCR); | 165 | __raw_writew((dc_static | (0x5555 & 0xcc0c)),PDCR); |
166 | ctrl_outw((ec_static | (0x5555 & 0xf0cf)),PECR); | 166 | __raw_writew((ec_static | (0x5555 & 0xf0cf)),PECR); |
167 | 167 | ||
168 | /* Ignore extra keys and events */ | 168 | /* Ignore extra keys and events */ |
169 | *s++ = ctrl_inb(PGDR); | 169 | *s++ = __raw_readb(PGDR); |
170 | *s++ = ctrl_inb(PHDR); | 170 | *s++ = __raw_readb(PHDR); |
171 | } | 171 | } |
172 | 172 | ||
173 | static void jornadakbd680_poll(struct input_polled_dev *dev) | 173 | static void jornadakbd680_poll(struct input_polled_dev *dev) |