mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ASoC: rockchip: i2s_tdm: Cast pointer to uintptr_t to fix warning on 32-bit
On 32-bit: sound/soc/rockchip/rockchip_i2s_tdm.c:155:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Cast the pointer to uintptr_t instead of u64 to fix this. Change-Id: Ie7dbbb59da68fadfe8ad639d93c513e38ab00b38 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -145,7 +145,7 @@ static void rockchip_snd_xfer_reset_assert(struct rk_i2s_tdm_dev *i2s_tdm,
|
||||
addr = cru_reset + (rx_bank * 4);
|
||||
}
|
||||
|
||||
if (IS_ALIGNED((u64)addr, 8)) {
|
||||
if (IS_ALIGNED((uintptr_t)addr, 8)) {
|
||||
writeq(val, addr);
|
||||
break;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ static void rockchip_snd_xfer_reset_deassert(struct rk_i2s_tdm_dev *i2s_tdm,
|
||||
addr = cru_reset + (rx_bank * 4);
|
||||
}
|
||||
|
||||
if (IS_ALIGNED((u64)addr, 8)) {
|
||||
if (IS_ALIGNED((uintptr_t)addr, 8)) {
|
||||
writeq(val, addr);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user