Skip to content

Commit bfe1e6e

Browse files
committed
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>
1 parent 76a299b commit bfe1e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/rockchip/rockchip_i2s_tdm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void rockchip_snd_xfer_reset_assert(struct rk_i2s_tdm_dev *i2s_tdm,
145145
addr = cru_reset + (rx_bank * 4);
146146
}
147147

148-
if (IS_ALIGNED((u64)addr, 8)) {
148+
if (IS_ALIGNED((uintptr_t)addr, 8)) {
149149
writeq(val, addr);
150150
break;
151151
}
@@ -189,7 +189,7 @@ static void rockchip_snd_xfer_reset_deassert(struct rk_i2s_tdm_dev *i2s_tdm,
189189
addr = cru_reset + (rx_bank * 4);
190190
}
191191

192-
if (IS_ALIGNED((u64)addr, 8)) {
192+
if (IS_ALIGNED((uintptr_t)addr, 8)) {
193193
writeq(val, addr);
194194
break;
195195
}

0 commit comments

Comments
 (0)