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

Commit 7bcafc73 authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

msm_rng: Change long to u32 type for buffers reading from RNG HW



Changing the type from long to u32 of the buffer that is used to
read data from the RNG hardware to reflect the size of the HW
register

Change-Id: I54e8eeae40a66c8033637044e627023150d6c411
Acked-by: default avatarBaranidharan Muthukumaran <bmuthuku@qti.qualcomm.com>
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent 0382d978
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -113,8 +113,8 @@ int msm_rng_direct_read(struct msm_rng_device *msm_rng_dev, void *data)
	struct platform_device *pdev;
	void __iomem *base;
	size_t currsize = 0;
	unsigned long val;
	unsigned long *retdata = data;
	u32 val;
	u32 *retdata = data;
	int ret;
	int failed = 0;

@@ -182,8 +182,8 @@ static int msm_rng_drbg_read(struct hwrng *rng,
	struct platform_device *pdev;
	void __iomem *base;
	size_t currsize = 0;
	unsigned long val;
	unsigned long *retdata = data;
	u32 val;
	u32 *retdata = data;
	int ret, ret1;
	int failed = 0;