mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
ANDROID: Cleanup type casting in goldfish.h
Bug: 72886167 Change-Id: I506a24e6e659d83a9df5efa0f8f00229e0a4b2d4 Signed-off-by: Roman Kiryanov <rkir@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
014fa364f8
commit
dac472216c
@@ -9,9 +9,11 @@
|
||||
static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
|
||||
void __iomem *porth)
|
||||
{
|
||||
writel((u32)(unsigned long)ptr, portl);
|
||||
const uintptr_t addr = (uintptr_t)ptr;
|
||||
|
||||
writel((u32)addr, portl);
|
||||
#ifdef CONFIG_64BIT
|
||||
writel((unsigned long)ptr >> 32, porth);
|
||||
writel(addr >> 32, porth);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user