summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/pmic8xxx-keypad.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-15 17:45:57 +0200
committerStephen Boyd <sboyd@codeaurora.org>2016-09-16 16:18:19 -0700
commitf00d2db7c4739af8a2496273175e0939e1047813 (patch)
tree1a139e15f84b5c28235e2620dae5e571c4aaf813 /drivers/input/keyboard/pmic8xxx-keypad.c
parent0637a4c7810a6b09ec6b1bf3dc88830cb64ce08b (diff)
clk: zx: fix pointer case warnings
The zx296718 clock driver has a creative way of assigning the register values for each clock, by initializing an __iomem pointer to an offset and then later adding the base (from ioremap) on top with a cast to u64. This fail on all 32-bit architectures during compile testing: drivers/clk/zte/clk-zx296718.c: In function 'top_clocks_init': drivers/clk/zte/clk-zx296718.c:554:35: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] zx296718_pll_clk[i].reg_base += (u64)reg_base; drivers/clk/zte/clk-zx296718.c:579:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] drivers/clk/zte/clk-zx296718.c:592:31: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] It would be nice to avoid all the casts, but I decided to simply shut up the warnings by changing the type from u64 to uintptr_t, which does the right thing in practice. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: ca0233285a93 ("clk: zx: register ZX296718 clocks") Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/input/keyboard/pmic8xxx-keypad.c')
0 files changed, 0 insertions, 0 deletions