audio: tegra: nvadsp: Fixed typecast warnings

- Fixed typecast warning
- Updated datatypes to make it compliant with kernel version > 5.10.0

Bug 3528414

Change-Id: Ief5cac399c35786e3f53dbe3199f70881e730df3
Signed-off-by: Akash Kollipara <akollipara@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2682497
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Akash Kollipara
2022-03-16 14:10:57 +05:30
committed by Laxman Dewangan
parent 3fa96a4417
commit 11c878a96e
2 changed files with 8 additions and 3 deletions

View File

@@ -420,7 +420,7 @@ static int __init nvadsp_probe(struct platform_device *pdev)
goto out; goto out;
} }
drv_data->base_regs[iter] = base; drv_data->base_regs[iter] = base;
nvadsp_add_load_mappings(res->start, base, nvadsp_add_load_mappings(res->start, (void __force *)base,
resource_size(res)); resource_size(res));
} }

View File

@@ -545,8 +545,8 @@ static void copy_io_in_l(void *to, const void *from, int sz)
{ {
int i; int i;
for (i = 0; i < sz; i += 4) { for (i = 0; i < sz; i += 4) {
int val = *(int *)(from + i); u32 val = *(u32 *)(from + i);
*(int *)(to + i) = val; writel(val, (void __iomem *)(to + i));
} }
} }
@@ -2224,8 +2224,13 @@ static int adsp_create_os_version(struct dentry *adsp_debugfs_root)
return 0; return 0;
} }
#if KERNEL_VERSION(5, 10, 0) > LINUX_VERSION_CODE
static unsigned int adsp_health_poll(struct file *file, static unsigned int adsp_health_poll(struct file *file,
poll_table *wait) poll_table *wait)
#else
static __poll_t adsp_health_poll(struct file *file,
poll_table *wait)
#endif
{ {
struct nvadsp_drv_data *drv_data = platform_get_drvdata(priv.pdev); struct nvadsp_drv_data *drv_data = platform_get_drvdata(priv.pdev);