projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97cf010
)
mfd/asic3: ioread/iowrite take pointer, not unsigned long
author
Al Viro
<viro@ftp.linux.org.uk>
Sat, 29 Mar 2008 03:10:58 +0000
(
03:10
+0000)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sun, 30 Mar 2008 21:20:24 +0000
(14:20 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/asic3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/asic3.c
b/drivers/mfd/asic3.c
index 63fb1ff3ad100b61b8a441cae9435fdb0186c264..f6f2d960cadbef6e883842b4b43b09a85947f4ea 100644
(file)
--- a/
drivers/mfd/asic3.c
+++ b/
drivers/mfd/asic3.c
@@
-28,14
+28,14
@@
static inline void asic3_write_register(struct asic3 *asic,
unsigned int reg, u32 value)
{
- iowrite16(value,
(unsigned long)
asic->mapping +
+ iowrite16(value, asic->mapping +
(reg >> asic->bus_shift));
}
static inline u32 asic3_read_register(struct asic3 *asic,
unsigned int reg)
{
- return ioread16(
(unsigned long)
asic->mapping +
+ return ioread16(asic->mapping +
(reg >> asic->bus_shift));
}