mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
drivers: platform: nvadsp: Fix sparse issues
Fix multiple instances of the following issues - - warning: incorrect type in argument 2 (different address spaces) - warning: symbol 'file_size' was not declared. Should it be static? Bug 3528414 Change-Id: I2cbda8dbfc98b134f36ec3c291a5147d96c6ff82 Signed-off-by: Niranjan Dighe <ndighe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2684747 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
19cf0a1232
commit
3fa96a4417
@@ -546,7 +546,7 @@ static void copy_io_in_l(void *to, const void *from, int sz)
|
||||
int i;
|
||||
for (i = 0; i < sz; i += 4) {
|
||||
int val = *(int *)(from + i);
|
||||
writel(val, to + i);
|
||||
*(int *)(to + i) = val;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -969,6 +969,7 @@ EXPORT_SYMBOL(nvadsp_os_load);
|
||||
* 0 - min emc freq
|
||||
* > 0 - expected emc freq at this adsp freq
|
||||
*/
|
||||
#ifdef CONFIG_TEGRA_ADSP_DFS
|
||||
u32 adsp_to_emc_freq(u32 adspfreq)
|
||||
{
|
||||
/*
|
||||
@@ -980,6 +981,7 @@ u32 adsp_to_emc_freq(u32 adspfreq)
|
||||
else
|
||||
return 0; /* emc min */
|
||||
}
|
||||
#endif
|
||||
|
||||
static int nvadsp_set_ape_emc_freq(struct nvadsp_drv_data *drv_data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user