aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/serio
diff options
context:
space:
mode:
authorGuanXuetao <gxt@mprc.pku.edu.cn>2011-02-26 08:21:18 -0500
committerGuanXuetao <gxt@mprc.pku.edu.cn>2011-03-16 21:19:19 -0400
commite5abf78b57199a417eb01ff922a5ea6ff9e10b61 (patch)
tree6f72a13d44c0dc8c4d575d84885f5694c16ed1da /drivers/input/serio
parent4517366d870b89d6fb8c0c90deb6c73d975908af (diff)
unicore32 io: redefine __REG(x) and re-use readl/writel funcs
-- by advice of Arnd Bergmann Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r--drivers/input/serio/i8042-unicore32io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/serio/i8042-unicore32io.h b/drivers/input/serio/i8042-unicore32io.h
index 620b040b81b0..73f5cc124a36 100644
--- a/drivers/input/serio/i8042-unicore32io.h
+++ b/drivers/input/serio/i8042-unicore32io.h
@@ -29,11 +29,11 @@
29/* 29/*
30 * Register numbers. 30 * Register numbers.
31 */ 31 */
32#define I8042_COMMAND_REG ((volatile void __iomem *)&PS2_COMMAND) 32#define I8042_COMMAND_REG PS2_COMMAND
33#define I8042_STATUS_REG ((volatile void __iomem *)&PS2_STATUS) 33#define I8042_STATUS_REG PS2_STATUS
34#define I8042_DATA_REG ((volatile void __iomem *)&PS2_DATA) 34#define I8042_DATA_REG PS2_DATA
35 35
36#define I8042_REGION_START (resource_size_t)(&PS2_DATA) 36#define I8042_REGION_START (resource_size_t)(PS2_DATA)
37#define I8042_REGION_SIZE (resource_size_t)(16) 37#define I8042_REGION_SIZE (resource_size_t)(16)
38 38
39static inline int i8042_read_data(void) 39static inline int i8042_read_data(void)