msm: camera: Changes to accommodate 32-bit Arch
This driver is using uint64_t to store pointers. On 64 bit uint64_t and pointer is of the same size, but on the 32 bit system pointers are smaller. Casting uint64_t to pointer generates warning on 32 bit platforms. Fix this by storing pointers as uintptr_t. On a 32 bit system, pointer size is 32 bits, but userspace is passing uint64_t value. Casting uint64_t to pointer generates a compilation warning. Fix this by first casting uint64_t to uintptr_t then to void ptr. Change-Id: I4e518288c2835a074e0dfb2dc2c1d1c6e9de55c0 Signed-off-by:Trishansh Bhardwaj <tbhardwa@codeaurora.org> Signed-off-by:
Sridhar Gujje <sgujje@codeaurora.org>
Loading
Please register or sign in to comment