Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8988ffe2 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: glink_smem_native_xprt: Use upper/lower bits helper macros



The helper macros upper_32_bits() and lower_32_bits() exist for splitting
64-bit values into 32-bit values.  Use the macros instead of doing the
casting manually.

Change-Id: If19b9a69c9328986e53c426dd09df659d650d336
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent f81d0b1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2825,8 +2825,8 @@ static int glink_mailbox_probe(struct platform_device *pdev)

	writel_relaxed(mbox_cfg_size, mbox_size);
	cfg_p_addr = smem_virt_to_phys(mbox_cfg);
	writel_relaxed((uint32_t)cfg_p_addr, mbox_loc);
	writel_relaxed((uint32_t)(((uint64_t)cfg_p_addr)>>32), mbox_loc + 4);
	writel_relaxed(lower_32_bits(cfg_p_addr), mbox_loc);
	writel_relaxed(upper_32_bits(cfg_p_addr), mbox_loc + 4);
	send_irq(einfo);
	iounmap(mbox_size);
	iounmap(mbox_loc);