mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Baranidharan Muthukumaran <bmuthuku@qti.qualcomm.com>
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
(cherry picked from commit 7bcafc734d
)
This commit is contained in:
parent
db92d029a4
commit
969302f5a7
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
pdev = msm_rng_dev->pdev;
|
||||
|
@ -159,8 +159,8 @@ static int msm_rng_drbg_read(struct hwrng *rng,
|
|||
void __iomem *base;
|
||||
size_t maxsize;
|
||||
size_t currsize = 0;
|
||||
unsigned long val;
|
||||
unsigned long *retdata = data;
|
||||
u32 val;
|
||||
u32 *retdata = data;
|
||||
int ret, ret1;
|
||||
|
||||
msm_rng_dev = (struct msm_rng_device *)rng->priv;
|
||||
|
|
Loading…
Reference in a new issue