diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-09-03 19:01:36 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-09-03 19:01:36 -0400 |
commit | 516d5f8b04ce2bcd24f03323fc743ae25b81373d (patch) | |
tree | ff37e84692dbef5063bbf22672eb8bfad0f25dd8 /drivers/input/misc | |
parent | 6ba694560caeb3531dbedd5b3a37af037ef2a833 (diff) | |
parent | 69e273c0b0a3c337a521d083374c918dc52c666f (diff) |
Merge tag 'v3.17-rc3' into next
Sync with mainline to bring in Chrome EC changes.
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/sirfsoc-onkey.c | 2 | ||||
-rw-r--r-- | drivers/input/misc/sparcspkr.c | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/input/misc/sirfsoc-onkey.c b/drivers/input/misc/sirfsoc-onkey.c index e4104f9b2e6d..fed5102e1802 100644 --- a/drivers/input/misc/sirfsoc-onkey.c +++ b/drivers/input/misc/sirfsoc-onkey.c | |||
@@ -213,7 +213,7 @@ static struct platform_driver sirfsoc_pwrc_driver = { | |||
213 | 213 | ||
214 | module_platform_driver(sirfsoc_pwrc_driver); | 214 | module_platform_driver(sirfsoc_pwrc_driver); |
215 | 215 | ||
216 | MODULE_LICENSE("GPLv2"); | 216 | MODULE_LICENSE("GPL v2"); |
217 | MODULE_AUTHOR("Binghua Duan <Binghua.Duan@csr.com>, Xianglong Du <Xianglong.Du@csr.com>"); | 217 | MODULE_AUTHOR("Binghua Duan <Binghua.Duan@csr.com>, Xianglong Du <Xianglong.Du@csr.com>"); |
218 | MODULE_DESCRIPTION("CSR Prima2 PWRC Driver"); | 218 | MODULE_DESCRIPTION("CSR Prima2 PWRC Driver"); |
219 | MODULE_ALIAS("platform:sirfsoc-pwrc"); | 219 | MODULE_ALIAS("platform:sirfsoc-pwrc"); |
diff --git a/drivers/input/misc/sparcspkr.c b/drivers/input/misc/sparcspkr.c index 65fd3150919b..179ff1cd6f6b 100644 --- a/drivers/input/misc/sparcspkr.c +++ b/drivers/input/misc/sparcspkr.c | |||
@@ -86,13 +86,13 @@ static int bbc_spkr_event(struct input_dev *dev, unsigned int type, unsigned int | |||
86 | spin_lock_irqsave(&state->lock, flags); | 86 | spin_lock_irqsave(&state->lock, flags); |
87 | 87 | ||
88 | if (count) { | 88 | if (count) { |
89 | outb(0x01, info->regs + 0); | 89 | sbus_writeb(0x01, info->regs + 0); |
90 | outb(0x00, info->regs + 2); | 90 | sbus_writeb(0x00, info->regs + 2); |
91 | outb((count >> 16) & 0xff, info->regs + 3); | 91 | sbus_writeb((count >> 16) & 0xff, info->regs + 3); |
92 | outb((count >> 8) & 0xff, info->regs + 4); | 92 | sbus_writeb((count >> 8) & 0xff, info->regs + 4); |
93 | outb(0x00, info->regs + 5); | 93 | sbus_writeb(0x00, info->regs + 5); |
94 | } else { | 94 | } else { |
95 | outb(0x00, info->regs + 0); | 95 | sbus_writeb(0x00, info->regs + 0); |
96 | } | 96 | } |
97 | 97 | ||
98 | spin_unlock_irqrestore(&state->lock, flags); | 98 | spin_unlock_irqrestore(&state->lock, flags); |
@@ -123,15 +123,15 @@ static int grover_spkr_event(struct input_dev *dev, unsigned int type, unsigned | |||
123 | 123 | ||
124 | if (count) { | 124 | if (count) { |
125 | /* enable counter 2 */ | 125 | /* enable counter 2 */ |
126 | outb(inb(info->enable_reg) | 3, info->enable_reg); | 126 | sbus_writeb(sbus_readb(info->enable_reg) | 3, info->enable_reg); |
127 | /* set command for counter 2, 2 byte write */ | 127 | /* set command for counter 2, 2 byte write */ |
128 | outb(0xB6, info->freq_regs + 1); | 128 | sbus_writeb(0xB6, info->freq_regs + 1); |
129 | /* select desired HZ */ | 129 | /* select desired HZ */ |
130 | outb(count & 0xff, info->freq_regs + 0); | 130 | sbus_writeb(count & 0xff, info->freq_regs + 0); |
131 | outb((count >> 8) & 0xff, info->freq_regs + 0); | 131 | sbus_writeb((count >> 8) & 0xff, info->freq_regs + 0); |
132 | } else { | 132 | } else { |
133 | /* disable counter 2 */ | 133 | /* disable counter 2 */ |
134 | outb(inb_p(info->enable_reg) & 0xFC, info->enable_reg); | 134 | sbus_writeb(sbus_readb(info->enable_reg) & 0xFC, info->enable_reg); |
135 | } | 135 | } |
136 | 136 | ||
137 | spin_unlock_irqrestore(&state->lock, flags); | 137 | spin_unlock_irqrestore(&state->lock, flags); |